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

Client Builder doesn't expose setValidateAfterInactivity(int)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 4.4.1
    • 5.0 Alpha2
    • HttpClient (classic)
    • None
    • Important

    Description

      The API 'setStaleConnectionCheckEnabled' on the RequestConfig Builder is deprecated. It points to calling 'setValidateAfterInactivity' on the PoolingHttpClientConnectionManager class.
      However we shouldn't mandate creating our own PoolingHttpClientConnectionManager instance (instead of reusing the one created automatically by the httpClient builder) just to setValidateAfterInactivity.
      We should expose on the client/request config builder a setValidateAfterInactivity like we do for 'setMaxConnPerRoute' and 'setMaxConnTotal' (which in the builder are later set on the internally created PoolingHttpClientConnectionManager ).

      Attachments

        Activity

          People

            olegk Oleg Kalnichevski
            yairogen yair ogen
            Votes:
            6 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: