mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-22 11:20:59 +01:00
BUG/MINOR: quic: Cubic congestion control window may wrap
Add a check to prevent the cubic congestion control from wrapping (very low risk) in slow start callback. Must be backported to 2.6 and 2.7.
This commit is contained in:
parent
23b8eef05b
commit
db54847212
@ -203,6 +203,7 @@ static void quic_cc_cubic_ss_cb(struct quic_cc *cc, struct quic_cc_event *ev)
|
|||||||
TRACE_PROTO("CC cubic", QUIC_EV_CONN_CC, cc->qc, ev);
|
TRACE_PROTO("CC cubic", QUIC_EV_CONN_CC, cc->qc, ev);
|
||||||
switch (ev->type) {
|
switch (ev->type) {
|
||||||
case QUIC_CC_EVT_ACK:
|
case QUIC_CC_EVT_ACK:
|
||||||
|
if (path->cwnd < QUIC_CC_INFINITE_SSTHESH - ev->ack.acked)
|
||||||
path->cwnd += ev->ack.acked;
|
path->cwnd += ev->ack.acked;
|
||||||
/* Exit to congestion avoidance if slow start threshold is reached. */
|
/* Exit to congestion avoidance if slow start threshold is reached. */
|
||||||
if (path->cwnd >= c->ssthresh)
|
if (path->cwnd >= c->ssthresh)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user