jira-importer opened a new issue, #857:
URL: https://github.com/apache/httpcomponents-core/issues/857

   **[Geir Harald 
Hansen](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=drharibo)** 
opened 
**[HTTPCORE-291](https://issues.apache.org/jira/browse/HTTPCORE-291?redirect=false)**
 and commented
   
   I am having a problem with the latest HttpCore NIO from the Subversion 
repository (revision 1234228). I have not tested this on earlier versions.
   
   I am observing two problems, but they stem from the same underlying issue - 
that after a response is delayed, processing of subsequent pipelined requests 
on the same socket continues immediately.
   
   Problem 1: If the response to your first request is delayed, but not the 
second, they are delivered out of order.
   Problem 2: If a request has a body (entity) then right after processing that 
request and delaying its response, there is a response on the wire ("400 Bad 
Request") and the connection is terminated. When this happens none of the 
delayed responses are cancelled, that is Cancellable#cancel() is never called.
   
   I will attach example source code, and an example of running telnet against 
the program, to show what is happening. There is first a request that is 
delayed and never gets a response. The second request gets a response 
immediately, out of order. The third request (a POST with body) also has its 
response delayed. But then there is a 400 bad request response and the 
connection is severed. The two delayed responses are not cancelled.
   
   
   ---
   
   **Attachments:**
   - 
[Test.java](https://issues.apache.org/jira/secure/attachment/12511382/Test.java)
 (_3.08 kB_)
   - 
[testrun.txt](https://issues.apache.org/jira/secure/attachment/12511383/testrun.txt)
 (_527 bytes_)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to