Skip to content
Permalink
Browse files
8254967: com.sun.net.HttpsServer spins on TLS session close
Backport-of: 953e472
  • Loading branch information
Alexey Bakhtin authored and Yuri Nesterenko committed Jul 30, 2021
1 parent 44980ee commit b3236af7aa4b40a8d7061ef3cda3cc3839d26845
Showing 1 changed file with 6 additions and 1 deletion.
@@ -430,11 +430,16 @@ void doClosure () throws IOException {
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();
}

1 comment on commit b3236af

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on b3236af Jul 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.