jira-importer opened a new issue, #1478: URL: https://github.com/apache/httpcomponents-core/issues/1478
**[Asankha Chamath Perera](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=asankha)** opened **[HTTPCORE-261](https://issues.apache.org/jira/browse/HTTPCORE-261?redirect=false)** and commented This is an enhancement request to improve the support to keep connections alive, and re-use them effectively without letting them timeout unnecessarily The problem can be described against v4.1.1 as follows: 1. We establish an outgoing connection and set the socket timeout to 5 seconds (Time = t0 ) 2. After receiving the response, we want to keep the socket open for reuse for 30 seconds, and we update the timeout (Time = t1) 3. After 6 seconds since `#2` above, we get an opportunity to reuse this connection, and again we set the socket timeout to 5 seconds 4. Almost immediately, the BaseIOReactor timeout check most definitely notices that the time the socket was last used (t1) is over 5 seconds from the current time, and times out the socket See http://markmail.org/message/zgnrquosjahqog6f for more details --- **Affects:** 4.1.1 **Attachments:** - [HTTPCORE-261-v4.1.x.patch](https://issues.apache.org/jira/secure/attachment/12483904/HTTPCORE-261-v4.1.x.patch) (_4.68 kB_) - [HTTPCORE-261-v4.2-alpha1.patch](https://issues.apache.org/jira/secure/attachment/12483905/HTTPCORE-261-v4.2-alpha1.patch) (_4.00 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]
