Skip to content

Commit

Permalink
New Largest Packet Number check shifted
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav2699 committed Jan 3, 2025
1 parent d94d218 commit 140e052
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/ack_tracker.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ QuicAckTrackerAckPacket(

Tracker->AckElicitingPacketsToAcknowledge++;

if ((Connection->Send.SendFlags & QUIC_CONN_SEND_FLAG_ACK) || !NewLargestPacketNumber) {
if (Connection->Send.SendFlags & QUIC_CONN_SEND_FLAG_ACK) {
goto Exit; // Already queued to send an ACK, no more work to do.
}

Expand All @@ -262,7 +262,8 @@ QuicAckTrackerAckPacket(
if (AckType == QUIC_ACK_TYPE_ACK_IMMEDIATE ||
Connection->Settings.MaxAckDelayMs == 0 ||
(Tracker->AckElicitingPacketsToAcknowledge >= (uint16_t)Connection->PacketTolerance) ||
QuicAckTrackerDidHitReorderingThreshold(Tracker, Connection->ReorderingThreshold)) {
(NewLargestPacketNumber &&
QuicAckTrackerDidHitReorderingThreshold(Tracker, Connection->ReorderingThreshold))) {
//
// Send the ACK immediately.
//
Expand Down

0 comments on commit 140e052

Please sign in to comment.