You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2012/08/22 17:09:42 UTC

[jira] [Commented] (HTTPASYNC-24) infinite loop in ContentInputStream.close

    [ 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