bug fix: do not access RemoteAddr on nil net.Conn

This commit is contained in:
iamqizhao 2015-09-24 18:39:38 -07:00
parent 262b78b833
commit 60c363f984
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ func (s *Server) Serve(lis net.Listener) error {
c, authInfo, err = creds.ServerHandshake(c)
if err != nil {
s.mu.Lock()
s.errorf("ServerHandshake(%q) failed: %v", c.RemoteAddr(), err)
s.errorf("ServerHandshake failed: %v", err)
s.mu.Unlock()
grpclog.Println("grpc: Server.Serve failed to complete security handshake.")
continue