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

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

      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.

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

              Created:
              Updated:
              Resolved: