From dcd6facb52a60945173e36581ff84b087fabb250 Mon Sep 17 00:00:00 2001 From: Menghan Li Date: Fri, 8 Mar 2019 10:16:19 -0800 Subject: [PATCH] client: reset backoff to 0 after a connection is established (#2669) #2663 #2636 --- clientconn.go | 1 + 1 file changed, 1 insertion(+) diff --git a/clientconn.go b/clientconn.go index 56d0bf713d73..40e192185a2e 100644 --- a/clientconn.go +++ b/clientconn.go @@ -1063,6 +1063,7 @@ func (ac *addrConn) resetTransport() { continue } + backoffFor = 0 ac.mu.Lock() reqHandshake := ac.dopts.reqHandshake ac.mu.Unlock()