mirror of https://github.com/grpc/grpc-go.git
client: reset backoff to 0 after a connection is established (#2669)
#2663 #2636
This commit is contained in:
parent
a1a84e16d0
commit
5abb35752c
|
|
@ -1032,6 +1032,7 @@ func (ac *addrConn) resetTransport() {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
backoffFor = 0
|
||||||
ac.mu.Lock()
|
ac.mu.Lock()
|
||||||
ac.curAddr = addr
|
ac.curAddr = addr
|
||||||
ac.transport = newTr
|
ac.transport = newTr
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue