Uploaded image for project: 'HttpComponents HttpClient'
  1. HttpComponents HttpClient
  2. HTTPCLIENT-1492

"TimeToLive" for connection pooling not settable via HttpClientBuilder

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.3.3
    • 4.4 Alpha1
    • HttpClient (classic)
    • 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.

      Attachments

        1. HttpClientBuilder-connTTL.diff
          2 kB
          Matthew P. Inger

        Activity

          People

            Unassigned Unassigned
            mattinger Matthew P. Inger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: