Skip to content

Commit

Permalink
unifying packet and acked_packet since acked_packet was not defined a…
Browse files Browse the repository at this point in the history
…nywhere.
  • Loading branch information
kazu-yamamoto committed Jul 16, 2020
1 parent 1a68921 commit 65dc7ea
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions draft-ietf-quic-recovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -1522,22 +1522,22 @@ newly acked_packets from sent_packets.
for acked_packet in acked_packets:
OnPacketAcked(acked_packet)

OnPacketAcked(packet):
OnPacketAcked(acked_packet):
// Remove from bytes_in_flight.
bytes_in_flight -= packet.sent_bytes
bytes_in_flight -= acked_packet.sent_bytes

// Do not increase congestion_window if application
// limited or flow control limited.
if (IsAppOrFlowControlLimited())
return

// Do not increase congestion window in recovery period.
if (InCongestionRecovery(packet.time_sent)):
if (InCongestionRecovery(acked_packet.time_sent)):
return

if (congestion_window < ssthresh):
// Slow start.
congestion_window += packet.sent_bytes
congestion_window += acked_packet.sent_bytes
else:
// Congestion avoidance.
congestion_window += max_datagram_size * acked_packet.sent_bytes
Expand Down

0 comments on commit 65dc7ea

Please sign in to comment.