The grpc::ServerInterface::Shutdown() behavior

30 views
Skip to first unread message

Hung Dang

unread,
Dec 7, 2023, 5:53:48 PM12/7/23
to grp...@googlegroups.com
Hello gRPC devs,

Can you confirm that the C++ grpc::ServerInterface::Shutdown() method will shut down the server and cancel all pending requests when being called?

Thanks,
Hung

Mark D. Roth

unread,
Dec 12, 2023, 4:36:11 PM12/12/23
to grpc.io
The behavior is documented in our API reference.  It does cancel all pending RPCs.  Note that applications using the CQ-based async API are responsible for noting that the calls have been cancelled and stopping their processing before destroying the CQs.
Reply all
Reply to author
Forward
0 new messages