BTW, I just curious about the implementation of the channel reconnect. And I cannot find any docs about it.
在 2017年9月21日星期四 UTC-7上午11:09:49,yihao yang写道: > > Hi, Eric > > 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? > > Thanks, > Yihao > > 在 2017年9月19日星期二 UTC-7下午5:05:20,Eric Anderson写道: >> >> 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, all >>> >>> I 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. >>> 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 >>> >>> <https://groups.google.com/d/msgid/grpc-io/19d4f65a-8a24-4905-9f47-2d30be5207c9%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- 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+unsubscr...@googlegroups.com. To post to this group, send email to grpc-io@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/83c2b327-a26b-4163-9b46-e30049fc9241%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.