How to explicitly close connection to clients on the server side?

46 views
Skip to first unread message

kishan patel

unread,
Sep 19, 2020, 7:25:48 PM9/19/20
to grpc.io
I'm using the c++ version of the sever to test my application and I wanted to know whether there was a way to explicitly close all established connections to clients as well as wait for confirmation before shutting down?

Before the test ends, my applications expects the gRPC server to terminate all established connections, otherwise it will fail. 

The test are passing 9/10 times, but fail occasionally whenever there are connections established while the application is shutting down. I need this to remove instabilities in my test suite.


veb...@google.com

unread,
Jan 31, 2021, 12:24:15 AM1/31/21
to grpc.io
I think there is no way doing this in gRPC C++ so this should be done by an application-side bookkeeping for connections. 
Reply all
Reply to author
Forward
0 new messages