hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HTTPCLIENT-1492) "TimeToLive" for connection pooling not settable via HttpClientBuilder
Date Tue, 01 Apr 2014 10:10:18 GMT

     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1492?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Oleg Kalnichevski resolved HTTPCLIENT-1492.

    Resolution: Fixed

Patch committed to SVN trunk. Many thanks, Matt, for contributing it.


> "TimeToLive" for connection pooling not settable via HttpClientBuilder
> ----------------------------------------------------------------------
>                 Key: HTTPCLIENT-1492
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1492
>             Project: HttpComponents HttpClient
>          Issue Type: Improvement
>          Components: HttpClient
>    Affects Versions: 4.3.3
>            Reporter: Matt Inger
>             Fix For: 4.4 Alpha1
>         Attachments: HttpClientBuilder-connTTL.diff
> 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.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org

View raw message