client: reset backoff to 0 after a connection is established (#2669)

#2663
#2636
This commit is contained in:
Menghan Li 2019-03-08 10:16:19 -08:00 committed by GitHub
parent a1a84e16d0
commit 5abb35752c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -1032,6 +1032,7 @@ func (ac *addrConn) resetTransport() {
continue
}
backoffFor = 0
ac.mu.Lock()
ac.curAddr = addr
ac.transport = newTr