Skip to content

Commit

Permalink
Update RTT in TCPSenderState.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 696605150
  • Loading branch information
nybidari authored and gvisor-bot committed Nov 14, 2024
1 parent 7238487 commit 2dfab3e
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 2dfab3e

Please sign in to comment.