We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1da28de commit 953e472Copy full SHA for 953e472
src/jdk.httpserver/share/classes/sun/net/httpserver/SSLStreams.java
@@ -430,11 +430,16 @@ void doClosure () throws IOException {
430
handshaking.lock();
431
ByteBuffer tmp = allocate(BufType.APPLICATION);
432
WrapperResult r;
433
+ Status st;
434
+ HandshakeStatus hs;
435
do {
436
tmp.clear();
437
tmp.flip ();
438
r = wrapper.wrapAndSendX (tmp, true);
- } while (r.result.getStatus() != Status.CLOSED);
439
+ hs = r.result.getHandshakeStatus();
440
+ st = r.result.getStatus();
441
+ } while (st != Status.CLOSED &&
442
+ !(st == Status.OK && hs == HandshakeStatus.NOT_HANDSHAKING));
443
} finally {
444
handshaking.unlock();
445
}
0 commit comments