hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim McCune <tmcc...@hmsonline.com>
Subject [PATCH] Single line feed treated as false connection close
Date Wed, 15 Oct 2003 21:28:24 GMT
This patch is against 2.0rc2.
I ran into a problem where the HttpClient kept thinking that the
connection was closed while talking to an IIS 5.0 server, even though my
web browser could load the page fine.  Turns out that the server was
sending a line feed as the first byte of the response, which HttpClient
treats as a closed connection due to a bug in HttpParser.  This patch
also contains a fix in HttpMethodBase.java for a NullPointerException
that happens when responseConnection is null, as well as an enhancement
that someone else in our organization submitted a while back but
apparently never got accepted.

View raw message