Async Client Hangs on Closed Conection
--------------------------------------
Key: HTTPASYNC-15
URL: https://issues.apache.org/jira/browse/HTTPASYNC-15
Project: HttpComponents HttpAsyncClient
Issue Type: Bug
Affects Versions: 4.0-beta1
Reporter: William R. Speirs
When using the Async Client if you connect to a server which immediately closes
the connection, the client never calls any of the callbacks. I believe that
this is because response is never checked for null in
DefaultNHttpClientConnection.consumeInput().
I will attached a basic reproducer which waits on a latch because none of the
callbacks are triggered. I've also submitted a patch for this issue, but I'm
not entirely sure what should be done in this case. The patch simply throws an
HttpException, but I'm not sure if this is the right thing to do.
--
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: [email protected]
For additional commands, e-mail: [email protected]