Skip to content

Commit

Permalink
m) fix: check if connection is out of startup phase by comparing cwnd…
Browse files Browse the repository at this point in the history
… but not cwnd_gain with target_window (#328)
  • Loading branch information
wangfuyu authored Sep 27, 2021
1 parent fb96e96 commit 843f807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liblsquic/lsquic_bbr.c
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ calculate_cwnd (struct lsquic_bbr *bbr, uint64_t bytes_acked,
if (bbr->bbr_flags & BBR_FLAG_IS_AT_FULL_BANDWIDTH)
bbr->bbr_cwnd = MIN(target_window, bbr->bbr_cwnd + bytes_acked);
else if (add_bytes_acked &&
(bbr->bbr_cwnd_gain < target_window ||
(bbr->bbr_cwnd < target_window ||
lsquic_bw_sampler_total_acked(&bbr->bbr_bw_sampler)
< bbr->bbr_init_cwnd))
// If the connection is not yet out of startup phase, do not decrease
Expand Down

0 comments on commit 843f807

Please sign in to comment.