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.
()
| 1941 | // pending RPCs on the client side will get notified by connection |
| 1942 | // errors. |
| 1943 | func (s *Server) Stop() { |
| 1944 | s.stop(false) |
| 1945 | } |
| 1946 | |
| 1947 | // GracefulStop stops the gRPC server gracefully. It stops the server from |
| 1948 | // accepting new connections and RPCs and blocks until all the pending RPCs are |