Skip to content

Commit 0bd1025

Browse files
committed
Incorporate OpenJDK jdk8u162-b12 changes
1 parent 876aeb6 commit 0bd1025

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/sun/security/ssl/SSLSocketImpl.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1802,7 +1802,12 @@ void waitForClose(boolean rethrow) throws IOException {
18021802
try {
18031803
readRecord(inrec, true);
18041804
} catch (SocketTimeoutException e) {
1805-
// if time out, ignore the exception and continue
1805+
if ((debug != null) && Debug.isOn("ssl")) {
1806+
System.out.println(
1807+
Thread.currentThread().getName() +
1808+
", received Exception: " + e);
1809+
}
1810+
fatal((byte)(-1), "Did not receive close_notify from peer", e);
18061811
}
18071812
}
18081813
inrec = null;

0 commit comments

Comments
 (0)