Skip to content

Commit

Permalink
server:fix net.conn closed twice
Browse files Browse the repository at this point in the history
  • Loading branch information
吴亲强 committed Aug 11, 2021
1 parent 997ce61 commit abd3a71
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,6 @@ func (s *Server) newHTTP2Transport(c net.Conn, authInfo credentials.AuthInfo) tr
s.mu.Lock()
s.errorf("NewServerTransport(%q) failed: %v", c.RemoteAddr(), err)
s.mu.Unlock()
c.Close()
channelz.Warning(logger, s.channelzID, "grpc: Server.Serve failed to create ServerTransport: ", err)
return nil
}
Expand Down

0 comments on commit abd3a71

Please sign in to comment.