mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-28 21:35:19 -04:00
BUG/MINOR: quic: Confusion betwen "in_flight" and "prep_in_flight" in quic_path_prep_data()
This function returns the remaining number of bytes which can be sent on the network before fulfilling the congestion window. There is a counter for the number of prepared data and another one for the really in flight number of bytes (in_flight). These variable have been mixed up.
This commit is contained in:
parent
5f6783094d
commit
abdf4a1533
1 changed files with 1 additions and 1 deletions
|
|
@ -1034,7 +1034,7 @@ static inline size_t quic_path_room(struct quic_path *path)
|
|||
*/
|
||||
static inline size_t quic_path_prep_data(struct quic_path *path)
|
||||
{
|
||||
if (path->in_flight > path->cwnd)
|
||||
if (path->prep_in_flight > path->cwnd)
|
||||
return 0;
|
||||
|
||||
return path->cwnd - path->prep_in_flight;
|
||||
|
|
|
|||
Loading…
Reference in a new issue