fix: ignore TLS handshake error. (#4227)

Fixes #4200
This commit is contained in:
Bala FA 2017-05-03 15:53:15 +05:30 committed by Harshavardhana
parent 9b58a669e5
commit 2b78444056

View File

@ -268,7 +268,7 @@ func newListenerMux(listener net.Listener, config *tls.Config) *ListenerMux {
// is a TLS connection, if not we should close and reject
// such a connection.
if cerr = tlsConn.Handshake(); cerr != nil {
errorIf(cerr, "TLS handshake failed")
// Close for junk message.
tlsConn.Close()
return
}