mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Nit fix: Should use maxTimeout in backoffTimer
The only user is in (*handshake).complete and it specifies MaxRTO, so there is no behavior changes. PiperOrigin-RevId: 360954447
This commit is contained in:
@@ -606,7 +606,7 @@ func newBackoffTimer(timeout, maxTimeout time.Duration, f func()) (*backoffTimer
|
||||
|
||||
func (bt *backoffTimer) reset() tcpip.Error {
|
||||
bt.timeout *= 2
|
||||
if bt.timeout > MaxRTO {
|
||||
if bt.timeout > bt.maxTimeout {
|
||||
return &tcpip.ErrTimeout{}
|
||||
}
|
||||
bt.t.Reset(bt.timeout)
|
||||
|
||||
Reference in New Issue
Block a user