Skip to content

Commit e778b9a

Browse files
committed
MINOR: quic: TX part modifications to support BBR.
Very few modifications: call ->on_transmit() and ->drs_on_transmit() congestion control algorithm (quic_cc) callbacks from qc_send_ppkts() just after having sents some packets.
1 parent 44af88d commit e778b9a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/quic_tx.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,10 @@ static int qc_send_ppkts(struct buffer *buf, struct ssl_sock_ctx *ctx)
396396
qc->path->ifae_pkts++;
397397
if (qc->flags & QUIC_FL_CONN_IDLE_TIMER_RESTARTED_AFTER_READ)
398398
qc_idle_timer_rearm(qc, 0, 0);
399+
if (cc->algo->on_transmit)
400+
cc->algo->on_transmit(cc);
401+
if (cc->algo->drs_on_transmit)
402+
cc->algo->drs_on_transmit(cc, pkt);
399403
}
400404
if (!(qc->flags & QUIC_FL_CONN_CLOSING) &&
401405
(pkt->flags & QUIC_FL_TX_PACKET_CC)) {

0 commit comments

Comments
 (0)