ID:               37256
 Updated by:       [EMAIL PROTECTED]
 Reported By:      faerion at eggdrop dot org dot ru
-Status:           Open
+Status:           Feedback
 Bug Type:         Other web server
 Operating System: Linux 2.6.15
 PHP Version:      5.1.2
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip




Previous Comments:
------------------------------------------------------------------------

[2006-05-01 03:31:42] faerion at eggdrop dot org dot ru

Description:
------------
I use nginx+php-fastcgi under linux. My script outputs some part of
file and waits for ipc message to continue sending file.
max_execution_time is set to 0, ignore_user_abort is off. When user
aborts the connection - nginx closes client connection and connection
to php-fastcgi server. But the socket on php doesn't close and remains
beeing in CLOSE_WAIT state without any timeout. There is also no script
execution break caused by connection abort - connection_status() always
returns 0. Example of netstat output:

tcp        1      0 127.0.0.1:10000             127.0.0.1:42347        
    CLOSE_WAIT  29566/php

Reproduce code:
---------------
while (!$t) {
                if (msg_receive($GLOBALS['stream_queue'], 1, $msg_type,
1024, $msg, true, MSG_IPC_NOWAIT)) {
                        $t = true;
                        } else {
                        usleep(10000);
                        }
                }

Expected result:
----------------
That code execution should break on user abort.

Actual result:
--------------
Actually it doesn't break.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37256&edit=1

Reply via email to