提交 a435de1f 编写于 作者: I igerasim

8166878: Connection reset during TLS handshake

Reviewed-by: xuelei
Contributed-by: xuelei.fan@oracle.com
上级 3a05321f
......@@ -621,8 +621,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");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册