ContentLengthInputStream does not implement available() properly
----------------------------------------------------------------

                 Key: HTTPCLIENT-598
                 URL: http://issues.apache.org/jira/browse/HTTPCLIENT-598
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient
    Affects Versions: 3.0.1, 3.1 Alpha 1
            Reporter: Igor Lubashev


ContentLengthInputStream should either extend FilterInputStream or should 
delegate available() to wrappedStream.

Otherwise, available() on the response stream (an instance of 
AutoCloseInputStream, which is properly extending FilterInputStream, and, 
therefore, delegating to the ContentLengthInputStream) always returns 0.

This issue is important for the clients that try to improve performance by 
processing all data that can be read in a non-blocking way before blocking on 
the network.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to