Bug #982: PHP improperly refuses to shut down
| From: | ccurtis at yacht dot ee dot fit dot edu | Date: | Tue, 08 Dec 1998 22:24:31 +0000 |
| Subject: | Bug #982: PHP improperly refuses to shut down | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-2721@lists.php.net to get a copy of this message | ||
From: ccurtis@ee.fit.edu
Operating system: Solaris 2.4
PHP version: 3.0.5
PHP Bug Type: Other
Bug description: PHP improperly refuses to shut down
I've posted this message at least twice to the general list and haven't recieved any
feedback. The problem is that I have a script that sits in an infinite loop. I don't want the
script to stop running until the client end closes the connection. This works fine. However, when
the client does close, PHP continues to run, eventually exhausting all server resources. Apache
properly recieves a SIGPIPE and I initially thought it to be an Apache bug
(http://bugs.apache.org/index/full/3467) but have since been told that it is more likely that PHP is
not properly checking the results of the write operation. I've looked at the code but
don't know enough about the process to determine anything useful. It does not look like PHP is
checking return values, though. The script is currently offline due to the problem, but Zeev has a
copy of the code, as do about a dozen other people who asked for it.
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net