Uploaded image for project: 'HttpComponents HttpCore'
  1. HttpComponents HttpCore
  2. HTTPCORE-369

Release BasicNIOConnPool connections per HttpHost

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.3
    • 4.4.1
    • Documentation, HttpCore NIO
    • None

    Description

      Hi Folks,

      I'm not sure if this is just missing in the documentation or if its not possible at all, so I wanted to bring it up and discuss.

      I'm firing out requests through the BasicNIOConnPool and use a List<HttpHost> do to that in a round-robin fashion - kinda. Now it could happen that this list changes so new hosts get added or old nodes removed. Adding new ones is not a problem since sockets get opened on the fly, but I'm worrying about removing them.

      Is there a way to release all open connections for a HttpHost? There is not much documentation around releasing those and from the API docs I see its only possible through a PoolEntry, but I have no clue how that maps to a HttpHost.

      And if that's not feasible or intended, what would be the correct way to do it?

      Thanks,
      Michael

      Attachments

        Activity

          People

            Unassigned Unassigned
            daschl Michael Nitschinger
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: