mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
m) fix: check if connection is out of startup phase by comparing cwnd but not cwnd_gain with target_window (#328)
This commit is contained in:
parent
fb96e96193
commit
843f807b95
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue