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

SSLSocket.close waits for peer response

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 20
    • security-libs
    • None

      Spotted while investigating JDK-8293562.

      SSLSocket.close attempts to clear the read buffer before closing the socket. If the read buffer is empty, this attempt blocks until the peer responds, or until the socket read timeout expires. See attached reproducer (requires keystore+truststore, not included)

      Expected result:
      SSLSocket close does not wait for the server to respond

            hchao Haimay Chao
            djelinski Daniel Jelinski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: