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

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 17
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      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

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

                Dates

                Created:
                Updated:
                Resolved: