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

ServerSocket::isClosed may return false after accept throws

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 18
    • Fix Version/s: 18
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b27
    • Verification:
      Verified

      Backports

        Description

        A side effect of JDK-8278270 is that isClosed will return false while close is in progress. This may be observed in cases where accept wakes up due to an async close and the code tests isClosed.

        The SOCKS code used in the test sun/security/x509/URICertStore/ExtensionsWithLDAP.java seems to do this, this test is now failing intermittently.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                alanb Alan Bateman
                Reporter:
                alanb Alan Bateman
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: