Update RTT in TCPSenderState.

PiperOrigin-RevId: 696605150
This commit is contained in:
Nayana Bidari
2024-11-14 12:05:50 -08:00
committed by gVisor bot
parent 7238487fac
commit 2dfab3e180
+1
View File
@@ -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