Connection termination detection on Windows CGI?

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Connection termination detection on Windows CGI?
Groups: php.dev 
Request: Send a blank email to php-dev+get-3782@lists.php.net to get a copy of this message
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@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#3782) next »