jira-importer opened a new issue, #796: URL: https://github.com/apache/httpcomponents-core/issues/796
**[Steffen Pingel](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=spingel)** opened **[HTTPCORE-103](https://issues.apache.org/jira/browse/HTTPCORE-103?redirect=false)** and commented If the underlying channel has more data buffered than can be read into inbuf DefaultNHttpServerConnection.consumeInput() will return and relies on the selector to timeout to read the remaining part of the request. I suggest to make the parsing code more greedy: int bytesRead; while ((bytesRead = this.requestParser.fillBuffer(this.session.channel())) > 0 && this.request == null) { if (bytesRead > 0) { this.inTransportMetrics.incrementBytesTransferred(bytesRead); } this.request = (HttpRequest) this.requestParser.parse(); } --- **Affects:** 4.0-alpha5 **Attachments:** - [httpcore-greedy-message-parsing.patch](https://issues.apache.org/jira/secure/attachment/12362082/httpcore-greedy-message-parsing.patch) (_9.08 kB_) - [httpcore-greedy-message-parsing.patch](https://issues.apache.org/jira/secure/attachment/12362070/httpcore-greedy-message-parsing.patch) (_9.35 kB_) - [TestBaseIOReactorSSL.java](https://issues.apache.org/jira/secure/attachment/12362005/TestBaseIOReactorSSL.java) (_5.12 kB_) -- 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]
