jira-importer opened a new issue, #1510: URL: https://github.com/apache/httpcomponents-core/issues/1510
**[Paul McLellan](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=pmac)** opened **[HTTPCORE-367](https://issues.apache.org/jira/browse/HTTPCORE-367?redirect=false)** and commented We recently upgraded from 4.3-beta2 to 4.3 and noticed that our client was not fully consuming large (~64K) responses from the server. A little digging led us to the 'consumeInput(NHttpClientEventHandler)' method of DefaultNHttpClientConnection. Within this method, the following logic from 4.3-beta2: if (this.contentDecoder != null && (this.session.getEventMask() & SelectionKey.OP_READ) > 0) { handler.inputReady(this, this.contentDecoder); if (this.contentDecoder.isCompleted()) { // Response entity received // Ready to receive a new response resetInput(); } } Has been replaced with: if (this.contentDecoder != null) { // Loop until there is interest in input, // decoder is not done and there is buffered session data while ((this.session.getEventMask() & SelectionKey.OP_READ) > 0) { handler.inputReady(this, this.contentDecoder); if (this.contentDecoder.isCompleted()) { // Response entity received // Ready to receive a new response resetInput(); break; } if (!this.inbuf.hasData()) { break; } } } This is causing the dispatcher thread to become stuck in an infinite loop when it reaches the end of the first chunk because the input buffer contains a single character ('\r') that is never consumed by the ChunkDecoder. Prior to the upgrade this method would exit and the dispatcher thread would be able to read the next chunk from the inbound channel. Can you help with this issue please? Any assistance/guidance would be greatly appreciated. Thanks. --- **Affects:** 4.3 -- 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]
