#20819 [Opn->Bgs]: max_execution_time ignored when waiting for open socket read
| From: | iliaa@php.net | Date: | Thu, 05 Dec 2002 00:10:22 +0000 |
| Subject: | #20819 [Opn->Bgs]: max_execution_time ignored when waiting for open socket read | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-26667@lists.php.net to get a copy of this message | ||
ID: 20819
Updated by: iliaa@php.net
Reported By: richard@zuidhof.nl
-Status: Open
+Status: Bogus
Bug Type: PHP options/info functions
Operating System: Linux 2.2.20 (Debian)
PHP Version: 4.2.3
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Use stream_set_timeout() to set the socket read timeouts, since socket
reads don't take cpu time, which is what max_execution_time is
referring to. While your script is sitting on a socket waiting for
data, it does not use any CPU time.
Previous Comments:
------------------------------------------------------------------------
[2002-12-04 17:21:32] richard@zuidhof.nl
When PHP is waiting for a socket read the max_exection_time parameter
is ignored. I was trying to use PHP scripts to monitor server response
times but when there is a problem the script does not kill itself.
It does not matter how I specify the max_execution_time. For instance
like this:
php4 -d max_execution_time 5
This behaviour was already in all previous versions I used.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20819&edit=1