[ 
https://issues.apache.org/jira/browse/HTTPASYNC-27?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mark Greene updated HTTPASYNC-27:
---------------------------------

    Description: 
I've noticed this specifically with 204 status codes (No Content). I've stepped 
through this and it appears the main cause is that the 'endOfStream' variable 
inside SimpleInputBuffer doesn't appear to be set to true.

Here's a stack trace of a thread that is stuck in an infinite loop:
"I/O dispatcher 7" daemon prio=10 tid=0x08ab8400 nid=0x2dcd runnable 
[0xf2bd3000]
   java.lang.Thread.State: RUNNABLE
        at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:129)
        at 
org.apache.http.nio.util.SimpleInputBuffer.read(SimpleInputBuffer.java:100)
        at 
org.apache.http.nio.entity.ContentInputStream.close(ContentInputStream.java:86)
        at org.apache.http.util.EntityUtils.consume(EntityUtils.java:85)

  was:
I've noticed this specifically with 204 status codes (No Content). I've stepped 
through this and it appears the main cause is that the 'endOfStream' variable 
inside SimpleInputBuffer doesn't appear to be set to true.



    
> Infinite Loop in ContentInputStream.close()
> -------------------------------------------
>
>                 Key: HTTPASYNC-27
>                 URL: https://issues.apache.org/jira/browse/HTTPASYNC-27
>             Project: HttpComponents HttpAsyncClient
>          Issue Type: Bug
>    Affects Versions: 4.0-beta2
>            Reporter: Mark Greene
>         Attachments: asyncbug.tar
>
>
> I've noticed this specifically with 204 status codes (No Content). I've 
> stepped through this and it appears the main cause is that the 'endOfStream' 
> variable inside SimpleInputBuffer doesn't appear to be set to true.
> Here's a stack trace of a thread that is stuck in an infinite loop:
> "I/O dispatcher 7" daemon prio=10 tid=0x08ab8400 nid=0x2dcd runnable 
> [0xf2bd3000]
>    java.lang.Thread.State: RUNNABLE
>         at java.nio.HeapByteBuffer.get(HeapByteBuffer.java:129)
>         at 
> org.apache.http.nio.util.SimpleInputBuffer.read(SimpleInputBuffer.java:100)
>         at 
> org.apache.http.nio.entity.ContentInputStream.close(ContentInputStream.java:86)
>         at org.apache.http.util.EntityUtils.consume(EntityUtils.java:85)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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