mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Update RTT in TCPSenderState.
PiperOrigin-RevId: 696605150
This commit is contained in:
committed by
gVisor bot
parent
7238487fac
commit
2dfab3e180
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user