Skip to content

Commit

Permalink
Update RTT in TCPSenderState.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 694160583
  • Loading branch information
nybidari authored and gvisor-bot committed Nov 12, 2024
1 parent 45b346e commit 7fa5637
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/tcpip/transport/tcp/snd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7fa5637

Please sign in to comment.