php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28027 No Keep-Alive for HTTP/1.0 (NOT DUPLICATE)
Submitted: 2004-04-16 15:50 UTC Modified: 2004-04-16 17:13 UTC
From: radu dot popescu at aldratech dot com Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.3.6 OS: GNU/Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: radu dot popescu at aldratech dot com
New email:
PHP Version: OS:

 

 [2004-04-16 15:50 UTC] 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:
----------------
[root@uriel 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:
--------------
[root@uriel 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-16 17:13 UTC] sniper@php.net
Keep-Alive is a HTTP/1.1 feature..

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 14:01:36 2025 UTC