#22072 [Opn->Fbk]: connection_status() always returning 0
| From: | sniper@php.net | Date: | Wed, 05 Feb 2003 22:08:19 +0000 |
| Subject: | #22072 [Opn->Fbk]: connection_status() always returning 0 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-32241@lists.php.net to get a copy of this message | ||
ID: 22072
Updated by: sniper@php.net
Reported By: neil@mpfreescene.com
-Status: Open
+Status: Feedback
-Bug Type: *General Issues
+Bug Type: Apache2 related
Operating System: FREEBSD 4.7-STABLE
PHP Version: 4.3.0
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Previous Comments:
------------------------------------------------------------------------
[2003-02-05 15:58:50] crockett@horizon.bc.ca
connection_status() always returns zero on Win32 4.3.0 running IIS.
Yes, ignore_user_abort(true) is set.
Bradley Crockett
------------------------------------------------------------------------
[2003-02-05 09:05:27] neil@mpfreescene.com
This bug is effecting the connection_status() function in apache 2.x
Okay, getting back to a long standing bug, which we kind of come to the
conclusion last time that it may be a bug in apache 2.x because it
works in apache 1.
Well time has come on, I have submitted the bug to apache after they
fixed the incorrect bytes logged bug, and this is what they have come
up with :-
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16426
ok, I've grabbed the current php source and looked into sapi_apache2.c.
It's
definitely a php bug. Line 90 shows:
if (ap_pass_brigade(f->next, bb) != APR_SUCCESS) {
php_handle_aborted_connection();
}
which won't match in most cases. Also Line 252 and 498.
AFAICS mod_php should (additionally) check connection->aborted.
(marking this bug invalid again)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22072&edit=1