On Wednesday, June 17, 2020 at 11:11:22 PM UTC-7, sathya M wrote:

> so what is the correct steps for graceful shutdown ?

Take a look at the doc comments for ServerBuilder's AddCompletionQueue
member function [1]. It describes the canonical way to shutdown an async
server.

The assert is because you're trying to destroy a non-empty completion queue.
Completion queues need to be drained before they can be destroyed. The
aforementioned documentation shows a way to do that.

For even more details, read the various documentation comments for all the
types involved. They're good at detailing what owns what and what order
shutdown needs to happen in.

[1]: 
https://github.com/grpc/grpc/blob/66b045636018505dfa2654e62003d9596733076b/include/grpcpp/server_builder_impl.h#L140-L171

--
Christopher Warrington
Microsoft Corp.

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to grpc-io+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/2a6041a9-4a03-4c40-a147-bc7d1f4d52aco%40googlegroups.com.

Reply via email to