Re: [grpc-io] Re: What is the behaviour of grpc::ServerContext::IsCancelled()

2018-04-09 Thread Okke Hendriks
Our use case was that we had a RPC call 'FollowPath'. This call instructs a robot to, you guessed it, follow a path. In case a client does a TryCancel() on the 'FollowPath' the robot must stop following the previously given path. In case the WiFi connection fails and the RPC is 'aborted' the

Re: [grpc-io] Re: What is the behaviour of grpc::ServerContext::IsCancelled()

2018-04-06 Thread 'Noah Eisen' via grpc.io
Can you give a little more info about your use case? What exact information do you need, and in what situations? I agree that digging into the non-public structs is a bad idea, since we maybe change those from time to time. If you present a use case that is lacking from our public API, we can add

[grpc-io] Re: What is the behaviour of grpc::ServerContext::IsCancelled()

2018-04-05 Thread Okke Hendriks
Thank you, Indeed it seems to be the case that it is more like IsFailed() instead of IsCanceled(). If i examine the *grpc_call* struct, (accessible through the c++ API

[grpc-io] Re: What is the behaviour of grpc::ServerContext::IsCancelled()

2018-04-04 Thread ncteisen via grpc.io
Taking a look at the C API, it looks like IsCancelled() will be true "if the call failed in any way". See here . There is not an API method to determine more info about error, but that should be available by