From 65dc7ea163cffb7bb5645973b121ebe12b100678 Mon Sep 17 00:00:00 2001 From: Kazu Yamamoto Date: Wed, 15 Jul 2020 16:36:48 +0900 Subject: [PATCH] unifying packet and acked_packet since acked_packet was not defined anywhere. --- draft-ietf-quic-recovery.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/draft-ietf-quic-recovery.md b/draft-ietf-quic-recovery.md index 39309b63f5..716ab8abba 100644 --- a/draft-ietf-quic-recovery.md +++ b/draft-ietf-quic-recovery.md @@ -1522,9 +1522,9 @@ 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. @@ -1532,12 +1532,12 @@ newly acked_packets from sent_packets. 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