Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
embed: wait up to 10s for pending RPCs when closing
Both grpc.Server.Stop and grpc.Server.GracefulStop close the listeners first, to stop accepting the new connections. GracefulStop blocks until all clients close their open transports(connections), when unary RPCs only take a few seconds to finish. Stream RPCs like watch might never close the connections in client side, thus making gRPC server wait forever. This patch still calls GracefulStop, but waits up to 10s before manually closing the open transports. Address #8224. Signed-off-by: Gyu-Ho Lee <gyuhox@gmail.com>
- Loading branch information