From: jenskord at gmx dot de Operating system: PHP version: 4.3.4 PHP Bug Type: Apache2 related Bug description: No Keep-Alive with Apache2 module for HTTP/1.0
Description: ------------ With apache2 module apache2 always responds with "Connection: Close" for a HTTP/1.0 (but not for 1.1)request. Source of this appears to be the line: apr_table_unset(r->headers_in, "Connection"); in (both) sapi_apache2.c. Omit this line. Apache2 decides on its own by the existence of the Content-Length: header in the result. HTTP/1.1 proofes it. Reproduce code: --------------- Send: GET http://localhost/test/test.php HTTP/1.0 Connection: Keep-Alive Expected result: ---------------- HTTP/1.1 200 OK Date: Fri, 12 Dec 2003 15:42:46 GMT Server: Apache/2.0.48 X-Powered-By: PHP/4.3.4 Expires: Mon, 26 Jul 1997 05:00:00 GMT Last-Modified: Fri, 12 Dec 2003 15:42:47 GMT Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Content-Length: 4 Connection: Keep-Alive Content-Type: text/plain; charset=ISO-8859-1 xxxx Actual result: -------------- HTTP/1.1 200 OK Date: Fri, 12 Dec 2003 15:42:46 GMT Server: Apache/2.0.48 X-Powered-By: PHP/4.3.4 Expires: Mon, 26 Jul 1997 05:00:00 GMT Last-Modified: Fri, 12 Dec 2003 15:42:47 GMT Cache-Control: no-store, no-cache, must-revalidate Cache-Control: post-check=0, pre-check=0 Pragma: no-cache Content-Length: 4 Connection: close Content-Type: text/plain; charset=ISO-8859-1 xxxx -- Edit bug report at http://bugs.php.net/?id=26604&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26604&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26604&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26604&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26604&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26604&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26604&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26604&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26604&r=support Expected behavior: http://bugs.php.net/fix.php?id=26604&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26604&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26604&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26604&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26604&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26604&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26604&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26604&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26604&r=float