diff --git a/quiche/src/lib.rs b/quiche/src/lib.rs index e9e1802192..ad1485bf93 100644 --- a/quiche/src/lib.rs +++ b/quiche/src/lib.rs @@ -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