Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199807

RE: [PHP3] How to stop stopping? From: Rasmus Lerdorf (rasmus <email protected>)
Date: 07/29/98

> When the user presses "STOP", it simply closes the connection, forcing a
> SIGPIPE which means that the server tried to write to a PIPE that had no
> reader. I'm not sure of the entire details, but apache then starts the
> shutdown process on the connection - which may or may not include a
> shutdown on the part of PHP - I'm not sure about this - Rasmus would
> know more.

Well, when Apache has handed control off to PHP, it is up to PHP to decide
what to do when a connection is aborted. Currently Apache sets a flag
which PHP catches and initiates the request shutdown calling all the
necessary cleanup functions.

There are other cases when Apache tells PHP to stop. Like when someone
terminates the httpd process, or sends a HUP to it. For those cases PHP
has registered a cleanup function with Apache which Apache then will call.

-Rasmus

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive:  http://www.php.net/mailsearch.php3