mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-10 10:28:37 +00:00
8166878: Connection reset during TLS handshake
Reviewed-by: xuelei
This commit is contained in:
parent
698c52a1eb
commit
90e6cda73c
@ -673,8 +673,11 @@ final class ClientHandshaker extends Handshaker {
|
||||
} else {
|
||||
// we wanted to resume, but the server refused
|
||||
//
|
||||
// Invalidate the session in case of reusing next time.
|
||||
session.invalidate();
|
||||
// Invalidate the session for initial handshake in case
|
||||
// of reusing next time.
|
||||
if (isInitialHandshake) {
|
||||
session.invalidate();
|
||||
}
|
||||
session = null;
|
||||
if (!enableNewSession) {
|
||||
throw new SSLException("New session creation is disabled");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user