diff --git a/server.go b/server.go index 19a002ad..bcd61960 100644 --- a/server.go +++ b/server.go @@ -594,9 +594,11 @@ func (s *Server) handleStream(t transport.ServerTransport, stream *transport.Str } } -// Stop stops the gRPC server. It immediately closes all open connections and listeners. It cancels all -// active RPCs on server side and the corresponding pending RPCs on client side will get notified by -// connection errors. +// Stop stops the gRPC server. It immediately closes all open +// connections and listeners. +// It cancels all active RPCs on the server side and the corresponding +// pending RPCs on the client side will get notified by connection +// errors. func (s *Server) Stop() { s.mu.Lock() listeners := s.lis