Merge pull request #567 from pquerna/log_handshake_error

log error message and source address in handshake error
This commit is contained in:
Qi Zhao
2016-02-23 16:02:59 -08:00

View File

@ -270,7 +270,7 @@ func (s *Server) handleRawConn(listenerAddr net.Addr, rawConn net.Conn) {
s.mu.Lock()
s.errorf("ServerHandshake(%q) failed: %v", rawConn.RemoteAddr(), err)
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()
return
}