8184328: JDK 8u131 socketRead0 hang at SSL read

Reviewed-by: xuelei, chegar, coffeys
This commit is contained in:
Rob McKenna 2017-09-26 19:19:09 +01:00
parent 99b202b398
commit 1fc8d0cfd9
2 changed files with 277 additions and 1 deletions

View file

@ -1802,7 +1802,12 @@ public final class SSLSocketImpl extends BaseSSLSocketImpl {
try {
readRecord(true);
} catch (SocketTimeoutException e) {
// if time out, ignore the exception and continue
if ((debug != null) && Debug.isOn("ssl")) {
System.out.println(
Thread.currentThread().getName() +
", received Exception: " + e);
}
fatal((byte)(-1), "Did not receive close_notify from peer", e);
}
}
} catch (IOException e) {