You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2006/06/12 19:15:46 UTC

DO NOT REPLY [Bug 39789] New: - ab does not handle 304 Not Modified correctly in a keep-alive connection

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39789>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39789

           Summary: ab does not handle 304 Not Modified correctly in a keep-
                    alive connection
           Product: Apache httpd-1.3
           Version: HEAD
          Platform: Other
        OS/Version: other
            Status: NEW
          Keywords: PatchAvailable
          Severity: normal
          Priority: P2
         Component: Other
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: chris@mysociety.org


ab relies on the Content-Length: header to figure out how to handle a response
during a keepalive connection. If a server fails to send this header with a 304
Not Modified response, ab will hang (it is waiting for the server to terminate
the connection, whereas the server is waiting for the client's next request).
There's no requirement for a 304 response to carry a Content-Length: so this is
ab's problem.

Patch to fix this here:
http://bitter.ukcod.org.uk/~chris/tmp/20060612/ab-keep-alive-handle-304.patch

(yes, the patch is nasty, but it's in keeping with the rest of ab's header
parsing code...).

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 39789] - ab does not handle 304 Not Modified correctly in a keep-alive connection

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39789>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39789





------- Additional Comments From chris@mysociety.org  2006-06-12 17:17 -------
Created an attachment (id=18449)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18449&action=view)
Patch to correct ab's handling of 304 Not Modified response in keep-alive mode


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


DO NOT REPLY [Bug 39789] - ab does not handle 304 Not Modified correctly in a keep-alive connection

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39789>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39789


colm@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




------- Additional Comments From colm@apache.org  2006-06-13 11:07 -------
I've committed a patch for this to trunk in r413861 using a slightly different
approach. Many thanks!

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org