ID:               28027
 Updated by:       [EMAIL PROTECTED]
 Reported By:      radu dot popescu at aldratech dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Apache2 related
 Operating System: GNU/Linux
 PHP Version:      4.3.6
 New Comment:

Keep-Alive is a HTTP/1.1 feature..




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

[2004-04-16 15:50:33] radu dot popescu at aldratech dot com

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 this bug report at http://bugs.php.net/?id=28027&edit=1

Reply via email to