Merge pull request #26 from anytypeio/any-handshake

fix listener
This commit is contained in:
Sergey Cherepanov authored and GitHub committed 2023-02-17 15:39:31 +03:00
commit 4ce9ffdf5a
1 file changed
+1 -4
+1 -4
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
}
}