From 2dfab3e1807919eac31a0fff68bdf94b869c0c10 Mon Sep 17 00:00:00 2001 From: Nayana Bidari Date: Thu, 14 Nov 2024 12:01:53 -0800 Subject: [PATCH] Update RTT in TCPSenderState. PiperOrigin-RevId: 696605150 --- pkg/tcpip/transport/tcp/snd.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/tcpip/transport/tcp/snd.go b/pkg/tcpip/transport/tcp/snd.go index 1e20ac2c32..4d836eeea0 100644 --- a/pkg/tcpip/transport/tcp/snd.go +++ b/pkg/tcpip/transport/tcp/snd.go @@ -418,6 +418,7 @@ func (s *sender) updateRTO(rtt time.Duration) { } s.RTO = s.rtt.TCPRTTState.SRTT + 4*s.rtt.TCPRTTState.RTTVar + s.RTTState = s.rtt.TCPRTTState s.rtt.Unlock() if s.RTO < s.minRTO { s.RTO = s.minRTO