Merge pull request #540 from iamqizhao/master
refine the comments of grpc.Server.Stop()
This commit is contained in:
@ -594,8 +594,9 @@ func (s *Server) handleStream(t transport.ServerTransport, stream *transport.Str
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Stop stops the gRPC server. Once Stop returns, the server stops accepting
|
// Stop stops the gRPC server. It immediately closes all open connections and listeners. It cancels all
|
||||||
// connection requests and closes all the connected connections.
|
// active RPCs on server side and the corresponding pending RPCs on client side will get notified by
|
||||||
|
// connection errors.
|
||||||
func (s *Server) Stop() {
|
func (s *Server) Stop() {
|
||||||
s.mu.Lock()
|
s.mu.Lock()
|
||||||
listeners := s.lis
|
listeners := s.lis
|
||||||
|
Reference in New Issue
Block a user