hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William R. Speirs (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HTTPCORE-281) Server does not follow version negotiation rules correctly
Date Thu, 17 Nov 2011 14:44:52 GMT

     [ https://issues.apache.org/jira/browse/HTTPCORE-281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

William R. Speirs updated HTTPCORE-281:
---------------------------------------

       Priority: Major  (was: Minor)
    Description: 
If a request is made with HTTP/1.0 and a response is provided with HTTP/1.1 the server will
incorrectly treat the entire connection as 1.1 by keeping a connection open with the client.
Some clients (ab for example) will simply hang waiting for the server to close the connection.

RFC 2145 (http://www.faqs.org/rfcs/rfc2145.html) describes HTTP version numbers and how clients
and servers should act.

  was:
If a request is made with HTTP/1.0 and a response is provided with HTTP/1.1 the server will
attempt to keep a connection open with the client. Some clients (ab for example) will simply
hang waiting for the server to close the connection.

I propose that the HttpResponse provided to the handle method be set to the version of the
request. This will still allow the flexibility of the programmer to change the HTTP version
number if he/she so chooses, but will provide functionality closer to what the standard describes
in Sec 8.1.2.1

     Issue Type: Bug  (was: Improvement)
        Summary: Server does not follow version negotiation rules correctly  (was: Set HttpResponse
Version to HttpRequest Version Before Calling Handle)
    
> Server does not follow version negotiation rules correctly
> ----------------------------------------------------------
>
>                 Key: HTTPCORE-281
>                 URL: https://issues.apache.org/jira/browse/HTTPCORE-281
>             Project: HttpComponents HttpCore
>          Issue Type: Bug
>          Components: HttpCore, HttpCore NIO
>            Reporter: William R. Speirs
>
> If a request is made with HTTP/1.0 and a response is provided with HTTP/1.1 the server
will incorrectly treat the entire connection as 1.1 by keeping a connection open with the
client. Some clients (ab for example) will simply hang waiting for the server to close the
connection.
> RFC 2145 (http://www.faqs.org/rfcs/rfc2145.html) describes HTTP version numbers and how
clients and servers should act.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Mime
View raw message