jira-importer opened a new issue, #1359: URL: https://github.com/apache/httpcomponents-core/issues/1359
**[Adam Bryzak](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=abryzak)** opened **[HTTPCORE-190](https://issues.apache.org/jira/browse/HTTPCORE-190?redirect=false)** and commented ChunkedInputStream does not handle socket timeouts when reading data. If a socket timeout is received after finishing reading a chunk (including it's CRLF combination) and before reading the next chunk's length, the next call to read will attempt to re-read the CRLF, causing an IOException with the message "CRLF expected at end of chunk" to be thrown. I have only tested this with 3.0 but it doesn't appear to be fixed in 3.1 or any 4.0 from looking at the code. --- **Affects:** 4.0 **Attachments:** - [HttpClient_829.java](https://issues.apache.org/jira/secure/attachment/12400969/HttpClient_829.java) (_4.33 kB_) - [HTTPCLIENT-829.patch](https://issues.apache.org/jira/secure/attachment/12400928/HTTPCLIENT-829.patch) (_2.27 kB_) **Issue Links:** - [HTTPCORE-333](https://issues.apache.org/jira/browse/HTTPCORE-333) ChunkedInputStream does not handle sockets with timeouts - Client 3.1 (_**"is cloned by"**_) -- 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]
