Skip to content

Commit

Permalink
server: fix net.conn closed twice (#4663)
Browse files Browse the repository at this point in the history
  • Loading branch information
wuqinqiang committed Aug 18, 2021
1 parent a42567f commit 52cea24
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion server.go
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 52cea24

Please sign in to comment.