Merge pull request #567 from pquerna/log_handshake_error
log error message and source address in handshake error
This commit is contained in:
@ -270,7 +270,7 @@ func (s *Server) handleRawConn(listenerAddr net.Addr, rawConn net.Conn) {
|
|||||||
s.mu.Lock()
|
s.mu.Lock()
|
||||||
s.errorf("ServerHandshake(%q) failed: %v", rawConn.RemoteAddr(), err)
|
s.errorf("ServerHandshake(%q) failed: %v", rawConn.RemoteAddr(), err)
|
||||||
s.mu.Unlock()
|
s.mu.Unlock()
|
||||||
grpclog.Println("grpc: Server.Serve failed to complete security handshake.")
|
grpclog.Printf("grpc: Server.Serve failed to complete security handshake from %q: %v", rawConn.RemoteAddr(), err)
|
||||||
rawConn.Close()
|
rawConn.Close()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user