GracefulStop stops the underlying gRPC server gracefully. It stops the server from accepting new connections and RPCs and blocks until all the pending RPCs are finished.
()
| 223 | // from accepting new connections and RPCs and blocks until all the pending RPCs |
| 224 | // are finished. |
| 225 | func (s *GRPCServer) GracefulStop() { |
| 226 | s.quit.Fire() |
| 227 | s.gs.GracefulStop() |
| 228 | if s.xdsC != nil { |
| 229 | s.xdsClientClose() |
| 230 | } |
| 231 | } |
| 232 | |
| 233 | // xdsUnaryInterceptor is the unary interceptor added to the gRPC server to |
| 234 | // perform any xDS specific functionality on unary RPCs. |
nothing calls this directly
no test coverage detected