Also, how did you get those reconnect attempt times? All languages should be following our standard connection backoff algorithm <https://github.com/grpc/grpc/blob/master/doc/connection-backoff.md>. If one's not, that would be a bug. Note that 20s is permitted as a minimum connect time. Basically, we're willing to wait 20 seconds for DNS, TCP, TLS, and similar to complete. If they fail though, then there may be a delay until the next attempt.
On Tue, Apr 18, 2017 at 3:54 PM, 'Penn (Dapeng) Zhang' via grpc.io < grpc-io@googlegroups.com> wrote: > In what language? There are (at least) two kinds of reties: connection > attempt retry, and high level RPC call retry. I assume your question is > about the former. > > On Friday, April 14, 2017 at 12:25:11 PM UTC-7, Yaz Saito wrote: >> >> I'm trying out 1.2.4 (I was using 1.0.1), and I noticed that the channel >> connection retry policy has changed. Looks like the newest code retries >> connection at intervals of 1s, 20s, 32s, 51.2s, etc. And I'm not happy with >> the huge jump from 1s to 20s. This means when I start a server then try to >> connect to it (which happens in unittests often), I often wait for 20s. Am >> I understanding the code right, and is there a way to force the channel to >> reconnect more quickly? >> >> -- >> yaz >> > -- > 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/a4b82f09-4eb7-4e6b-aabd-71198e38b558%40googlegroups.com > <https://groups.google.com/d/msgid/grpc-io/a4b82f09-4eb7-4e6b-aabd-71198e38b558%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/CA%2B4M1oPAgg2XRCLbkmVG5KE%3DSmaARVevxwn_gfu40HQGMqj4Sg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
smime.p7s
Description: S/MIME Cryptographic Signature