Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8288746

HttpClient resources could be reclaimed more eagerly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 20
    • 11-pool, 17, 19, 20
    • core-libs
    • None
    • b04

    Description

      The HttpClient SelectorManager thread may not notice immediately that the HttpClient is no longer in use if it's blocked in a select call. The select calls are all time based, so it will eventually notice, but it may take up to 1500ms before the manager wakes up.

      The HttpClientFacade could use a Cleaner to wakeup the SelectorManager when it is being garbage collected. If all operations have terminated by this point (which will be the case in most regular usage of the API), the selector manager will be able t shutdown right away.

      Attachments

        Issue Links

          Activity

            People

              dfuchs Daniel Fuchs
              dfuchs Daniel Fuchs
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: