8254967: com.sun.net.HttpsServer spins on TLS session close
Reviewed-by: dfuchs
This commit is contained in:
parent
1da28de82f
commit
953e472ded
@ -430,11 +430,16 @@ class SSLStreams {
|
||||
handshaking.lock();
|
||||
ByteBuffer tmp = allocate(BufType.APPLICATION);
|
||||
WrapperResult r;
|
||||
Status st;
|
||||
HandshakeStatus hs;
|
||||
do {
|
||||
tmp.clear();
|
||||
tmp.flip ();
|
||||
r = wrapper.wrapAndSendX (tmp, true);
|
||||
} while (r.result.getStatus() != Status.CLOSED);
|
||||
hs = r.result.getHandshakeStatus();
|
||||
st = r.result.getStatus();
|
||||
} while (st != Status.CLOSED &&
|
||||
!(st == Status.OK && hs == HandshakeStatus.NOT_HANDSHAKING));
|
||||
} finally {
|
||||
handshaking.unlock();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user