summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/transport/tcp/rack.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-01-28 00:27:45 +0000
committergVisor bot <gvisor-bot@google.com>2021-01-28 00:27:45 +0000
commitb161e5d2a3a9a8518e8408116e6c5f0269557d12 (patch)
tree4a1b4538ffccbae2b7ad96ed75b9f3efc3420dd3 /pkg/tcpip/transport/tcp/rack.go
parent309913688384e2e1ba64927192fab22cc925eb5d (diff)
parent99988e45ed651f64e16e2f2663b06b4a1eee50d4 (diff)
Merge release-20210112.0-104-g99988e45e (automated)
Diffstat (limited to 'pkg/tcpip/transport/tcp/rack.go')
-rw-r--r--pkg/tcpip/transport/tcp/rack.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/tcpip/transport/tcp/rack.go b/pkg/tcpip/transport/tcp/rack.go
index 307bacca5..fdb7e3dc6 100644
--- a/pkg/tcpip/transport/tcp/rack.go
+++ b/pkg/tcpip/transport/tcp/rack.go
@@ -162,7 +162,7 @@ func (s *sender) shouldSchedulePTO() bool {
// The connection supports SACK.
s.ep.sackPermitted &&
// The connection is not in loss recovery.
- (s.state != RTORecovery && s.state != SACKRecovery) &&
+ (s.state != tcpip.RTORecovery && s.state != tcpip.SACKRecovery) &&
// The connection has no SACKed sequences in the SACK scoreboard.
s.ep.scoreboard.Sacked() == 0
}