Improve Socket Timeout Handling support when connections are being kept alive
and re-used
-----------------------------------------------------------------------------------------
Key: HTTPCORE-261
URL: https://issues.apache.org/jira/browse/HTTPCORE-261
Project: HttpComponents HttpCore
Issue Type: Improvement
Components: HttpCore NIO
Affects Versions: 4.1.1
Reporter: Asankha C. Perera
Assignee: Asankha C. Perera
Priority: Minor
Fix For: 4.1.2
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
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]