From 1d963da48653f883864ff3238b35aed9f9674f4a Mon Sep 17 00:00:00 2001 From: Marten Seemann Date: Thu, 21 Feb 2019 11:14:32 +0800 Subject: [PATCH] add the pn_space index for largest_acked_packet --- 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 d5857c9d41..d98d5c31d2 100644 --- a/draft-ietf-quic-recovery.md +++ b/draft-ietf-quic-recovery.md @@ -944,8 +944,8 @@ Pseudocode for OnAckReceived and UpdateRtt follow: ~~~ OnAckReceived(ack, pn_space): - largest_acked_packet[pn_space] = max(largest_acked_packet, - ack.largest_acked) + largest_acked_packet[pn_space] = + max(largest_acked_packet[pn_space], ack.largest_acked) // If the largest acknowledged is newly acked and // ack-eliciting, update the RTT. @@ -1123,10 +1123,10 @@ DetectLostPackets(pn_space): lost_send_time = now() - loss_delay // Packets with packet numbers before this are deemed lost. - lost_pn = largest_acked_packet - kPacketThreshold + lost_pn = largest_acked_packet[pn_space] - kPacketThreshold foreach unacked in sent_packets: - if (unacked.packet_number > largest_acked_packet): + if (unacked.packet_number > largest_acked_packet[pn_space]): continue // Mark packet as lost, or set time when it should be marked.