tlsconf: clear handshake deadline after completed handshake

This commit is contained in:
Christian Schwarz 2018-12-11 21:19:48 +01:00
parent 7a75a4d384
commit 68b62a5c00

View File

@ -70,6 +70,7 @@ func (l *ClientAuthListener) Accept() (c net.Conn, clientCN string, err error) {
if err = tlsConn.Handshake(); err != nil {
goto CloseAndErr
}
tlsConn.SetDeadline(time.Time{})
peerCerts = tlsConn.ConnectionState().PeerCertificates
if len(peerCerts) != 1 {