Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
8254967: com.sun.net.HttpsServer spins on TLS session close
Backport-of: 953e472dedf55bc1a831af36637547b5a1fd7af7
  • Loading branch information
Yuri Nesterenko committed Jul 29, 2021
1 parent 6d4ca21 commit 8e6f409
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -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();
}
Expand Down

1 comment on commit 8e6f409

@openjdk-notifier
Copy link

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.