fix listener

This commit is contained in:
Sergey Cherepanov 2023-02-17 15:38:42 +03:00 committed by Mikhail Iudin
parent 68e122cf72
commit 370683ff70
No known key found for this signature in database
GPG Key ID: FAAAA8BAABDFF1C0

View File

@ -77,10 +77,6 @@ func (s *BaseDrpcServer) serve(ctx context.Context, lis net.Listener) {
}
continue
}
if herr, ok := err.(secureservice.HandshakeError); ok {
l.Warn("listener handshake error", zap.Error(herr), zap.String("remoteAddr", herr.RemoteAddr()))
continue
}
l.Error("listener accept error", zap.Error(err))
return
}
@ -98,6 +94,7 @@ func (s *BaseDrpcServer) serveConn(conn net.Conn) {
ctx, conn, err = s.handshake(conn)
if err != nil {
l.Info("handshake error", zap.Error(err))
return
}
}