From:             radu dot popescu at aldratech dot com
Operating system: GNU/Linux
PHP version:      4.3.6RC3
PHP Bug Type:     Apache2 related
Bug description:  No Keep-Alive for HTTP/1.0 (NOT DUPLICATE)

Description:
------------
Connection is always set to "close" on HTTP/1.0 requests that as for
Keep-Alive.

HTTP/1.1 works as expected.



*** This is not a duplicate of #26604, since the offending lines are not
in source anymore but the behaviour persists. ***



Apache2 version: httpd-2.0.46-32.ent

PHP 4.3.6 (cli) (built: Apr 16 2004 21:42:42)

Copyright (c) 1997-2004 The PHP Group

Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies



Reproduce code:
---------------
Use either "ab -v 2" (only HTTP/1.0) or curl -0 -v to see the response
headers from Apache2/PHP.

Expected result:
----------------
[EMAIL PROTECTED] apache2handler]# curl -v -H "Connection: Keep-Alive"
http://uriel/test.php



* About to connect() to uriel:80

* Connected to uriel (192.168.0.128) port 80

> GET /test.php HTTP/1.1

User-Agent: curl/7.10.6 (i386-redhat-linux-gnu) libcurl/7.10.6
OpenSSL/0.9.7a ipv6 zlib/1.1.4

Host: uriel

Pragma: no-cache

Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*

Connection: Keep-Alive



< HTTP/1.1 200 OK

< Date: Fri, 16 Apr 2004 19:39:07 GMT

< Server: Apache/2.0.46 (Red Hat)

< X-Powered-By: PHP/4.3.6

< Keep-Alive: timeout=30, max=1000

< Connection: Keep-Alive

Actual result:
--------------
[EMAIL PROTECTED] apache2handler]# curl -v -H "Connection: Keep-Alive" -0
http://uriel/test.php



* About to connect() to uriel:80

* Connected to uriel (192.168.0.128) port 80

> GET /test.php HTTP/1.0

User-Agent: curl/7.10.6 (i386-redhat-linux-gnu) libcurl/7.10.6
OpenSSL/0.9.7a ipv6 zlib/1.1.4

Host: uriel

Pragma: no-cache

Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*

Connection: Keep-Alive



< HTTP/1.1 200 OK

< Date: Fri, 16 Apr 2004 19:38:20 GMT

< Server: Apache/2.0.46 (Red Hat)

< X-Powered-By: PHP/4.3.6

< Connection: close



-- 
Edit bug report at http://bugs.php.net/?id=28027&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28027&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28027&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28027&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28027&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28027&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28027&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28027&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28027&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28027&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28027&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28027&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28027&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28027&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28027&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28027&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28027&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28027&r=float

Reply via email to