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 <[email protected]> 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 [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/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 [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/CA%2B4M1oMUhNADvnEKsqmOYNUhFUc%3DJ4nWGdwx9rHSaz0k9DwZvQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to