[PHP-DEV] Connection termination detection on Windows CGI? From: Rasmus Lerdorf (rasmus <email protected>)
Date: 01/29/99

Shane, I gather you noticed the changes I made to make the Apache module
version correctly detect a client disconnected along with the functions I
added to check for this in the shutdown function.

How does this translate to PHP on Windows? The implementation is simple
enough. I'm checking each output operation and on an error set a global
variable (bit 1 of php_connection_status) to indicate that the connection
was aborted. If you look in php.h you will see that the PUTS, PUTC and
PHPWRITE macros now point to functions that perform this check and set the
global. It looks to me like an identical set of functions would do the
trick for CGI, but I didn't want to start modifying this without being
able to test it properly on Windows.

-Rasmus

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>