Skip to content

Commit

Permalink
Correctly account for datagram queue in delivery_rate_check_if_app_li…
Browse files Browse the repository at this point in the history
…mited

Datagram byte size should be used instead of the number of packets.
  • Loading branch information
toshiiw committed Jul 28, 2023
1 parent 9bbccd5 commit 0056454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quiche/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7156,7 +7156,7 @@ impl Connection {
.filter_map(|(_, p)| p.active().then(|| p.recovery.cwnd_available()))
.sum();

((self.tx_buffered + self.dgram_send_queue_len()) < cwin_available) &&
((self.tx_buffered + self.dgram_send_queue_byte_size()) < cwin_available) &&
(self.tx_data.saturating_sub(self.last_tx_data)) <
cwin_available as u64 &&
cwin_available > 0
Expand Down

0 comments on commit 0056454

Please sign in to comment.