jira-importer opened a new issue, #1481: URL: https://github.com/apache/httpcomponents-core/issues/1481
**[Denis Rogov](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=drogov)** opened **[HTTPCORE-197](https://issues.apache.org/jira/browse/HTTPCORE-197?redirect=false)** and commented To reproduce just change in org.apache.http.examples.nio.NHttpClient one of the connet entries to reqs[0] = ioReactor.connect( new InetSocketAddress("www.stuftpizza.com", 80), null, new HttpHost("www.stuftpizza.com"), new MySessionRequestCallback(requestCount)); You will receive I/O error: Truncated chunk ( expected size: 457; actual size: 216). Though content the site is returning now is RFC-compliant. This site responses now with 6 chunks with lengths(hex) 319, 40f, 1c9, 45, 198, 31. SOCKET_BUFFER_SIZE is configured in this example to 8192. org.apache.http.nio.entity.BufferingNHttpEntity#BUFFER_SIZE is 2048 now and this causes that sometimes destination buffer capacity is less in runtime than the chunk length in ChunkDecoder. Proposed patch is attached for this particular case. --- **Affects:** 4.0 **Attachments:** - [truncatedChunkDecoderFix.patch](https://issues.apache.org/jira/secure/attachment/12408537/truncatedChunkDecoderFix.patch) (_959 bytes_) 1 votes, 1 watchers -- 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]
