Skip to content

Commit a3248a3

Browse files
committed
MINOR: quic: make bbr consider the max window size setting
Limit the BBR congestion control window size as this is done for all the others congestion control algorithms with tune.quic.frontend.default-max-window-size or as first argument passed to "bbr" option for "quic-cc-algo".
1 parent dc15581 commit a3248a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/quic_cc_bbr.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,8 @@ static void bbr_set_cwnd(struct bbr *bbr, struct quic_cc_path *p, uint32_t acked
559559
p->cwnd = MAX(p->cwnd, bbr_min_pipe_cwnd(p));
560560
bbr_bound_cwnd_for_probe_rtt(bbr, p);
561561
bbr_bound_cwnd_for_model(bbr, p);
562+
/* Limitation by configuration (not in BBR RFC). */
563+
p->cwnd = MIN(p->cwnd, p->max_cwnd);
562564
}
563565

564566
static int bbr_init(struct quic_cc *cc)

0 commit comments

Comments
 (0)