提交 7eab3e8a 编写于 作者: X xuelei

8130864: Better server identity handling

Reviewed-by: jnimeh, asmotrak, ahgross
上级 33120409
...@@ -620,6 +620,9 @@ final class ClientHandshaker extends Handshaker { ...@@ -620,6 +620,9 @@ final class ClientHandshaker extends Handshaker {
} }
} else { } else {
// we wanted to resume, but the server refused // we wanted to resume, but the server refused
//
// Invalidate the session in case of reusing next time.
session.invalidate();
session = null; session = null;
if (!enableNewSession) { if (!enableNewSession) {
throw new SSLException("New session creation is disabled"); 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.
先完成此消息的编辑!
想要评论请 注册