Skip to content

Commit

Permalink
client: reset backoff to 0 after a connection is established (#2669)
Browse files Browse the repository at this point in the history
  • Loading branch information
menghanl committed Mar 20, 2019
1 parent 849487b commit a29b2fc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions clientconn.go
Original file line number Diff line number Diff line change
Expand Up @@ -1059,6 +1059,7 @@ func (ac *addrConn) resetTransport() {
continue
}

backoffFor = 0
ac.mu.Lock()
reqHandshake := ac.dopts.reqHandshake
ac.mu.Unlock()
Expand Down

0 comments on commit a29b2fc

Please sign in to comment.