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

Improve how HttpConnection detects a closed channel when taking/returning a connection to the pool

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • None
    • 17
    • core-libs
    • b11

    Description

      There is a race condition when the server closes a connection at roughly the same time that the client takes it of the pool. This is particularly observable when the server/proxy closes the connection just after returning 401/407, but can also be observed in other circumstances.
      The detection of a channel state could be improved by attempting to read one character off the connection just after taking the connection off the pool.

      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: