#20053 [Fbk->Opn]: apache&suexec&php-cgi&ignore_user_abort -> problem with cancelled connections
| From: | kamil at kamil dot eisp dot pl | Date: | Thu, 05 Dec 2002 01:37:08 +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-26691@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.3.0-dev
+PHP Version: 4.4.0-dev
New Comment:
problem still persist :(
Previous Comments:
------------------------------------------------------------------------
[2002-12-03 01:12:13] shane@php.net
Please try the latest cvs as of today. Several significant cgi fixes
have been commited.
------------------------------------------------------------------------
[2002-10-24 12:26:56] sniper@php.net
updated version.
------------------------------------------------------------------------
[2002-10-24 04:27:26] kamil@kamil.eisp.pl
Exactly the same behaviour as in 4.2.3 :(
------------------------------------------------------------------------
[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