Log protocol version during handshake (#10178)

Motivation:

Only cipher suite is logged during handshake. Picked protocol is interesting too.

Modification:

Log protocol as well.

Result:

More interesting information when debugging TLS handshakes.
This commit is contained in:
Stephane Landelle 2020-04-14 10:48:43 +02:00 committed by Norman Maurer
parent cecbf18251
commit 43c139c2fa

View File

@ -1784,7 +1784,12 @@ public class SslHandler extends ByteToMessageDecoder {
handshakePromise.trySuccess(ctx.channel());
if (logger.isDebugEnabled()) {
logger.debug("{} HANDSHAKEN: {}", ctx.channel(), engine.getSession().getCipherSuite());
SSLSession session = engine.getSession();
logger.debug(
"{} HANDSHAKEN: protocol:{} cipher suite:{}",
ctx.channel(),
session.getProtocol(),
session.getCipherSuite());
}
ctx.fireUserEventTriggered(SslHandshakeCompletionEvent.SUCCESS);