Skip to content

Commit 46e9053

Browse files
committed
MINOR: quic: call ->pacing_delay_ns() CC callback
This callback returns the pacing delay between packet (or bursts) to be sent depending on the underlying congestion control algorithm. Call it from qc_send_mux() which needs this delay value.
1 parent c608ae9 commit 46e9053

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/quic_tx.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,8 @@ enum quic_tx_err qc_send_mux(struct quic_conn *qc, struct list *frms,
499499
}
500500

501501
if (pacer) {
502-
const ullong ns_pkts = quic_pacing_ns_pkt(pacer);
502+
struct quic_cc *cc = &qc->path->cc;
503+
const ullong ns_pkts = cc->algo->pacing_delay_ns(cc);
503504
max_dgram = global.tune.quic_frontend_max_tx_burst * 1000000 / (ns_pkts + 1) + 1;
504505
}
505506

0 commit comments

Comments
 (0)