FYI: PR 28580 - HTTP fixes...

David Daney ddaney@avtrex.com
Fri Aug 11 20:59:00 GMT 2006


I just committed the fix for PR 28580 to classpath.

The problem was that in cases where there is no response body, a 
persistent connection would never be returned to the connection pool. 
Also if you tried to read a body from a HEAD request where the server 
indicated chucked-encoding, the read would hang (instead of immediately 
returning EOF).

Earlier today I committed a mauve testcase for this problem.

Do we want to bring this into libgcj before this would be imported also?


2006-08-11  David Daney  <ddaney@avtrex.com>

         PR classpath/28580
         * gnu/java/net/protocol/http/Request.java (readResponse):  Call
         createResponseBodyStream in more cases and with new parameter.
         (createResponseBodyStream):  Added new parameter mayHaveBody. 
Handle
         HEAD and !mayHaveBody responses specially.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cp.diff
Type: text/x-patch
Size: 2018 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20060811/dd26cf1f/attachment.bin>


More information about the Java-patches mailing list