hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPASYNC-24) infinite loop in ContentInputStream.close
Date Wed, 22 Aug 2012 15:09:42 GMT

    [ https://issues.apache.org/jira/browse/HTTPASYNC-24?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13439590#comment-13439590
] 

Oleg Kalnichevski commented on HTTPASYNC-24:
--------------------------------------------

Kireet,
I do not quite see how an empty response entity would cause the ContentInputStream#close()
got into an infinite loop, given that -1 (end of stream) value returned by the read operation
immediately terminates the loop. Could you please submit a test case that reproduces the issue?

Oleg  
                
> infinite loop in ContentInputStream.close
> -----------------------------------------
>
>                 Key: HTTPASYNC-24
>                 URL: https://issues.apache.org/jira/browse/HTTPASYNC-24
>             Project: HttpComponents HttpAsyncClient
>          Issue Type: Bug
>    Affects Versions: 4.0-beta2
>         Environment: linux
>            Reporter: Kireet Reddy
>
> For requests that respond with no content, an infinite loop occurs at ContentInputStream.close()
line 86 when using EntityUtils.toString() to read the response.

--
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