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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 19
    • Component/s: security-libs
    • Labels:
      None

      Description

      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().

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: