gRPC C++: Which is the method to be used for notifying the grpc client about server disconnect

Viewed 17

I'm writing a client which communicates with multiple server via gRPC. The data transfer works absolutely fine but I'm getting an exception on client side when one of the server stops abruptly. I would like to know if there is any error handling in gRPC library which can handle this server disconnection and do a clean exit from client side.

I can see methods like bool IsCancelled() const which could be used on server side to get status about client disconnection. I need a similar method to be used on client to get notified about server disconnection.

0 Answers
Related