--
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+unsubscribe@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
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/19d4f65a-8a24-4905-9f47-2d30be5207c9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You shouldn't need to do anything. The channel will automatically attempt to reconnect on later RPCs. If connecting fails, it will use exponential backoff.When you initially create the channel, it doesn't eagerly create a connection. It is only after requesting RPCs that it makes a connection. So it's already quite normal for it to make connections on-demand.
On Tue, Sep 12, 2017 at 7:26 PM, yihao yang <yangyi...@gmail.com> wrote:
Hi, allI know some basics about how completion queue work. But I do not know how channel reconnection work. Can anyone describe some detail about how to trigger a channel reconnection in the code level?Thanks,Yihao
--
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.
I guess the default wait_for_ready option is just to wait the exponential backoff reconnect until it timeouts and will not issue the channel reconnect immediately. Am I right?
BTW, I just curious about the implementation of the channel reconnect. And I cannot find any docs about it.
It is defined in doc/connection-backoff.md.