rschmitt opened a new pull request, #732:
URL: https://github.com/apache/httpcomponents-client/pull/732

   Connection TTL can be effected either in bulk by calling 
`connMgr.closeExpired()` or at connection reuse time by configuring a 
`timeToLive` on the `ConnectionConfig`. Strangely, idle timeouts can only be 
effected in bulk via `connMgr.closeIdle()`, or with an `IdleConnectionEvictor`; 
they have no corresponding `ConnectionConfig` setting. This change resolves 
this inconsistency. The result is that idle timeouts are much easier to 
configure and enforce: they don't require spinning up a background thread that 
periodically locks the entire conn pool and closes idle connections; there is 
no longer the possibility of reusing a connection after it hits its intended 
idle timeout; and it doesn't matter whether the connection pool is shared.


-- 
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]

Reply via email to