Which version of gRPC are you using?
For prior to 0.14, the best available advice was to set a deadline on the stream (so it times out), and if you needed more watch the connectivity state of the channel.
With 0.14 we introduced and defaulted all streams to fail fast semantics, so if the underlying channel fails to connect you'll get an unavailable status when we detect that.
I have a server-side stream client, when server is unavailabe, client is blocked in ClientReader::Read. How can I known the server is UNAVAILABLE and canncel the Read, or is there a way to know UNAVAILABLE status before Read?
--
You received this message because you are subscribed to the Google Groups "grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/69c4ae5f-e805-4e3b-9f9a-a5bd2483a134%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.