TLS 1.3, update on SSLSocketImpl.checkEOF() JDK-8145252-TLS13-branch
authorxuelei
Thu, 17 May 2018 16:18:47 -0700
branchJDK-8145252-TLS13-branch
changeset 56571 9dfdc35eb270
parent 56570 60ff67126765
child 56573 4a53dd94403e
TLS 1.3, update on SSLSocketImpl.checkEOF()
src/java.base/share/classes/sun/security/ssl/SSLSocketImpl.java
--- a/src/java.base/share/classes/sun/security/ssl/SSLSocketImpl.java	Thu May 17 11:12:52 2018 -0700
+++ b/src/java.base/share/classes/sun/security/ssl/SSLSocketImpl.java	Thu May 17 16:18:47 2018 -0700
@@ -1018,7 +1018,8 @@
      */
     synchronized boolean checkEOF() throws IOException {
         if (conContext.isClosed()) {
-            throw new SocketException("Socket is closed");
+            // throw new SocketException("Socket is closed");
+            return true;
         } else if (conContext.isInputCloseNotified || conContext.isBroken) {
             if (conContext.closeReason == null) {
                 return true;