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

Fix API Note in javadoc for javax.net.ssl.SSLSocket

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 19
    • None
    • security-libs
    • None

      Fixed API Note in javadoc for javax.net.ssl.SSLSocket class. API Note was introduced by JDK-8208526 [1]. At that point both Socket.shutdownInput() / Socket.shutdownOutput() and InputStream.close() / OutputStream.close() performed half-close of TLS-1.3 connection. However this behaviour has changed as result of JDK-8216326 [2]. InputStream.close() / OutputStream.close() no longer perform half-close but full socket close, but API Note was never updated.

      [1] https://bugs.openjdk.java.net/browse/JDK-8208526
      [2] https://bugs.openjdk.java.net/browse/JDK-8216326

      Also added some quick text to clarify that SSLSockets can be closed using either shutdownInput()/shutdownOutput() or close().

            wetmore Bradford Wetmore
            jwaters Julian Waters
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: