mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8184328: JDK 8u131 socketRead0 hang at SSL read
Reviewed-by: xuelei, chegar, coffeys
This commit is contained in:
parent
99b202b398
commit
1fc8d0cfd9
2 changed files with 277 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue