GracefulStop stops the gRPC server gracefully. It stops the server from accepting new connections and RPCs and blocks until all the pending RPCs are finished.
()
| 1948 | // accepting new connections and RPCs and blocks until all the pending RPCs are |
| 1949 | // finished. |
| 1950 | func (s *Server) GracefulStop() { |
| 1951 | s.stop(true) |
| 1952 | } |
| 1953 | |
| 1954 | func (s *Server) stop(graceful bool) { |
| 1955 | s.quit.Fire() |