Hi there,
I got an off-thread followup question which I thought I would also post 
here since it seemed relevant to this discussion:

Question: "Still not clear on what will happen when the network has some 
problem. For example, I want to use the bi-directional stream to maintain a 
session. How can I say the session should be expired if the network is 
partitioned or the server/client are crashed. Can I just check how long has 
no event came? Will there have some other situation?"

Response: This is getting into advanced (and interesting) topics. By 
default, channels in gRPC are reliable in the sense that they will try to 
reconnect to survive TCP failures unless the failure is known to be 
permanent. So this issue is not actually in the streaming API - it is an 
issue in the channel API itself. You can check the current connectivity of 
a channel, as well as receive a notification on the CQ when the 
connectivity state changes. These functions are documented at 
http://www.grpc.io/grpc/cpp/classgrpc_1_1_channel_interface.html . Hope 
that helps!

- Vijay

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/96cf9820-0251-4975-85fb-76c5c1fdd820%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to