Skip to content

Commit

Permalink
modified variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav2699 committed Dec 19, 2024
1 parent 95a3533 commit a928db6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/ack_tracker.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,16 @@ QuicAckTrackerDidHitReorderingThreshold(

for (uint32_t Index = QuicRangeSize(&Tracker->PacketNumbersToAck); Index > 0; --Index) {
uint64_t SmallestMissing = 0; // Smallest missing in the previous gap
uint64_t HighestMissing = QuicRangeGet(&Tracker->PacketNumbersToAck, Index - 1)->Low; // Highest missing in the prevous gap
if (HighestMissing == 0) {
uint64_t RangeStart = QuicRangeGet(&Tracker->PacketNumbersToAck, Index - 1)->Low; // Lowest Packet number in the subrange
if (RangeStart == 0) {
return FALSE;
}
if (Index != 1) {
SmallestMissing = QuicRangeGetHigh(QuicRangeGet(&Tracker->PacketNumbersToAck, Index - 2)) + 1;
}

if (LargestReported > SmallestMissing) {
if (HighestMissing > LargestReported) {
if (RangeStart > LargestReported) {
SmallestMissing = LargestReported;
} else {
return FALSE;
Expand Down

0 comments on commit a928db6

Please sign in to comment.