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:
Ting-Yu Wang
2021-03-04 10:54:06 -08:00
committed by gVisor bot
parent 76f0d2c67b
commit a9face757a
+1 -1
View File
@@ -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)