diff options
author | Ting-Yu Wang <anivia@google.com> | 2021-03-04 10:52:00 -0800 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-03-04 10:54:06 -0800 |
commit | a9face757a2a0b7530999f112def3b633dbdecf4 (patch) | |
tree | 1d7216868251be296262c731a5fde338b7fbc24a /pkg/tcpip/transport/tcp | |
parent | 76f0d2c67b75f9916866c07663dae7c7da805dbc (diff) |
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
Diffstat (limited to 'pkg/tcpip/transport/tcp')
-rw-r--r-- | pkg/tcpip/transport/tcp/connect.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/transport/tcp/connect.go b/pkg/tcpip/transport/tcp/connect.go index d1e452421..61a173fbb 100644 --- a/pkg/tcpip/transport/tcp/connect.go +++ b/pkg/tcpip/transport/tcp/connect.go @@ -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) |