I have a gRPC HelloWorld server running like shown in official getting started guide(https://grpc.io/docs/quickstart/python/).
I now want to shutdown/terminate the server from the client, possibly by calling a server method.
I know this can be done because I read this post on how to do this in c++. How to shutdown gRPC server from Client (using RPC function)
My programming language is python for both client and server. Any help will be much appreciated.
server.wait_for_termination()
source code:threading.Event().wait()
does not work with CTRL+C across platforms. Will this affect the solution? – Gujarat