Skip to content

Commit

Permalink
Optimize pacing for small packets (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaofei0800 authored Sep 13, 2024
1 parent 3a8fbb1 commit ec26090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connection/recovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ impl Recovery {
}

// Update pacing tokens number.
self.pacer.on_sent(self.max_datagram_size as u64);
self.pacer.on_sent(sent_size as u64);
}

/// Handle packet acknowledgment event.
Expand Down

0 comments on commit ec26090

Please sign in to comment.