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

PoolingHttpClientConnectionManager has no option to close long leased connections

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      The original issue is described in this thread http://mail-archives.apache.org/mod_mbox/hc-httpclient-users/201309.mbox/%3C5239A981.6040405@europages.com%3E

      Copying relevant part:

      > AbstractConnPool class, which CPool is based upon, provides #enumLeased
      > method that can be used to enumerate leased connections and optionally
      > close some or all of them. Truth to be told, I simply forgot to add a
      > corresponding method to PoolingHttpClientConnectionManager.
      >
      > Please raise a change request in JIRA for this issue. For the time being
      > you will have to resort to reflection in order to get hold of the 'pool'
      > instance variable and cast it to AbstractConnPool.

      There is a PoolingHttpClientConnectionManager#closeExpiredConnections method, which is used by IdleConnectionEvictor to handle expired connections.

      Could a similar method be added for leased connections as well?

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            ondrusek Jan Ondrusek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment