clajder created HTTPASYNC-70:
--------------------------------
Summary: Shuting down the underlying channel [ioctrl.shutdown()]
doesn't mark contentdecoder as completed
Key: HTTPASYNC-70
URL: https://issues.apache.org/jira/browse/HTTPASYNC-70
Project: HttpComponents HttpAsyncClient
Issue Type: Bug
Affects Versions: 4.0.1
Reporter: clajder
If in AsyncByteConsumer close underlying channel
protected void onByteReceived(ByteBuffer buf, IOControl ioctrl) throws
IOException {
if( <some_condition> )
{
ioctrl.shutdown();
}
}
later in HttpAsyncRequestExecutor.inputReady(...) there is just one check
agains content decoder to verify if consuming completed
if (decoder.isCompleted()) {
processResponse(conn, state, handler);
}
so the decoder goes into indefinite waiting.
Seems like setting decoder.completed into true solves problem.
Thoughts?
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]