ENT-6022: Handle internal_error during SSL handshake gracefully (#7024)

This commit is contained in:
Dimos Raptis 2022-01-17 10:14:47 +00:00 committed by GitHub
parent 524f1c14c9
commit b644495d46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -302,7 +302,7 @@ internal class AMQPChannelHandler(private val serverMode: Boolean,
-> logWarnWithMDC("Received close_notify during handshake")
// io.netty.handler.ssl.SslHandler.setHandshakeFailureTransportFailure()
cause is SSLException && (cause.message?.contains("writing TLS control frames") == true) -> logWarnWithMDC(cause.message!!)
cause is SSLException && (cause.message?.contains("internal_error") == true) -> logWarnWithMDC("Received internal_error during handshake")
else -> badCert = true
}
logWarnWithMDC("Handshake failure: ${evt.cause().message}")