ID: 30301
User updated by: phpbug at zone-mr dot ath dot cx
Reported By: phpbug at zone-mr dot ath dot cx
Status: Open
Bug Type: IIS related
-Operating System: Windows 2004 Server
+Operating System: Windows 2003 Server
PHP Version: 5.0.2
New Comment:
Typo: Windows 2004 Server should of course be Windows 2003 Server
Previous Comments:
------------------------------------------------------------------------
[2004-10-01 14:25:06] phpbug at zone-mr dot ath dot cx
Description:
------------
I have seen similar bug reports for Apache2 (where the issue is still
unresolved, but none for IIS 6.0).
I have tried two different servers, and both PHP 5.02 and PHP4.39. Each
server was running Windows 2003 with IIS 6 and exhibits the same
symptons.
Connection_status reports 0, even when the stop button is pressed, and
there is no browser listening to the script output. Connection_abort
also returns false.
Reproduce code:
---------------
ignore_user_abort(???); //Tried both true and false, no difference
while (connection_status()==0) {
sleep(1);
echo "test\n";
flush();
ob_flush();
... //Log an "I'm still here" timestamp, for debugging
if(connection_aborted()) {
//Log a disconnection into a DB
exit;
}
}
//Log a disconnection into a DB
Expected result:
----------------
When the browser window or connection is closed, I expect the script to
stop logging the "I'm still there" message every second, and terminate
execution.
Actual result:
--------------
The script continues to run, updating the timestamp every second, until
the time limit is reached. Connection_aborted, connection_status seem to
indicate the connection is still active (but it isn't - the browser is
closed, netstat confirms that there are no connections).
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30301&edit=1