You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to grpc.io
Hi all,
Is there an example of the correct way to shut down a synchronous server? or do synchronous servers not need to be explicitly shutdown? Thanks!
Yang Gao
unread,
Aug 7, 2019, 1:42:27 PM8/7/19
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to grpc.io
You can call a grpc::Server::Shutdown with a timeout, after the timeout the pending rpcs will be cancelled. In your rpc handler (if you have long-lived streaming or rpcs), you will need to check ServerContext::isCancelled to finish up the rpcs. The sync server will not finish cleanup before you finish all the rpcs.