Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
4.3.3
-
None
Description
The "timeToLive" property for connection pools is not settable via HttpClientBuilder, nor is it settable on the PoolingConnectionManager at any time other than construction. As such, setting this attribute requires that you deliberately create your own PoolingConnectionManager, which includes any SSLSocketFactory creation, etc....
This vastly complicates the process of creating pooled connections with a time to live setting of anything other than -1 (no expiration, which is the default, and what ends up getting used by HttpClientBulder).
I'm requesting that HttpClientBuilder provide a way to set this property.