#20053 [Fbk->Opn]: apache&suexec&php-cgi&ignore_user_abort -> problem with cancelled connections

From: Date: Thu, 24 Oct 2002 09:27:27 +0000
Subject: #20053 [Fbk->Opn]: apache&suexec&php-cgi&ignore_user_abort -> problem with cancelled connections
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-23179@lists.php.net to get a copy of this message
 ID:               20053
 User updated by:  kamil@kamil.eisp.pl
 Reported By:      kamil@kamil.eisp.pl
-Status:           Feedback
+Status:           Open
 Bug Type:         Apache related
 Operating System: linux 2.4.18
 PHP Version:      4.2.3
 New Comment:

Exactly the same behaviour as in 4.2.3 :(


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

[2002-10-24 02:42:11] sniper@php.net

Please try using this CVS snapshot:

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

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

[2002-10-23 19:40:25] kamil@kamil.eisp.pl

Under very specific circumstances, php goes in tight infinite loop
eating all cpu after request is cancelled.

Configuration:
php 4.2.3 as cgi
apache 1.3.27
php configured with Action directive, (important) using suexec.

Conditions for problem to occur in script:
1.ignore_user_abort(true)
2.sending any http header
3.sending any body content AFTER http header
4. connection is aborted before all data are sent to client.

Script to reproduce problem:
---- CUT ----
<?
ignore_user_abort(true);
header("X-Whatever: whatever");
?>
whatever
---- CUT ----

Problem doesn't exist with mod_php or php-cgi without suexec.
It appears that after apache has closed connection php is still trying
to write output and loops for unknown reason.
I'm not sure if this is fault of php, apache or suexec, but I think it
could be fixed in php.

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


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



Thread (8 messages)

« previous php.bugs (#23179) next »