summaryrefslogtreecommitdiffhomepage
path: root/pkg/tcpip/transport
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-03-16 01:55:27 +0000
committergVisor bot <gvisor-bot@google.com>2021-03-16 01:55:27 +0000
commit302095201997b26cef9c2b5fe28a7eb23cfdcc66 (patch)
tree4dc22840faa0b54a0ca717a6f41cb1a40f615883 /pkg/tcpip/transport
parented21cec72081f64b619dc1580b1700eb976f32d4 (diff)
parentb1d57877264c2b94e3024375efc9914881f0bbe8 (diff)
Merge release-20210309.0-27-gb1d578772 (automated)
Diffstat (limited to 'pkg/tcpip/transport')
-rw-r--r--pkg/tcpip/transport/tcp/snd.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/tcpip/transport/tcp/snd.go b/pkg/tcpip/transport/tcp/snd.go
index 18817029d..faca35892 100644
--- a/pkg/tcpip/transport/tcp/snd.go
+++ b/pkg/tcpip/transport/tcp/snd.go
@@ -323,7 +323,9 @@ func newSender(ep *endpoint, iss, irs seqnum.Value, sndWnd seqnum.Size, mss uint
// their initial values.
func (s *sender) initCongestionControl(congestionControlName tcpip.CongestionControlOption) congestionControl {
s.sndCwnd = InitialCwnd
- s.sndSsthresh = math.MaxInt64
+ // Set sndSsthresh to the maximum int value, which depends on the
+ // platform.
+ s.sndSsthresh = int(^uint(0) >> 1)
switch congestionControlName {
case ccCubic: