src/java.base/share/classes/sun/security/ssl/SSLTransport.java
branchJDK-8145252-TLS13-branch
changeset 56712 bad9f4c7eeec
parent 56708 25178bb3e8f5
--- a/src/java.base/share/classes/sun/security/ssl/SSLTransport.java	Fri Jun 08 16:51:30 2018 -0700
+++ b/src/java.base/share/classes/sun/security/ssl/SSLTransport.java	Fri Jun 08 19:43:11 2018 -0700
@@ -25,6 +25,7 @@
 
 package sun.security.ssl;
 
+import java.io.EOFException;
 import java.io.IOException;
 import java.nio.ByteBuffer;
 import javax.crypto.BadPaddingException;
@@ -129,6 +130,9 @@
         } catch (SSLHandshakeException she) {
             // may be record sequence number overflow
             context.fatal(Alert.HANDSHAKE_FAILURE, she);
+        } catch (EOFException eofe) {
+            // rethrow EOFException, the call will handle it if neede.
+            throw eofe;
         } catch (IOException ioe) {
             context.fatal(Alert.UNEXPECTED_MESSAGE, ioe);
         }