]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: Wrong use of now_ms timestamps (newreno algo)
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 22 Mar 2023 08:13:14 +0000 (09:13 +0100)
committerFrédéric Lécaille <flecaille@haproxy.com>
Fri, 31 Mar 2023 07:54:59 +0000 (09:54 +0200)
commit8e6c6611e8b03bebc9d19be0b466a8b1104e820d
treed985c58b492d5eb9b56aa5c622a1abaa394404f3
parenta3772e1134177e5117d1494afe7a4f31ecb089da
BUG/MINOR: quic: Wrong use of now_ms timestamps (newreno algo)

This patch is similar to the one for cubic algorithm:
    "BUG/MINOR: quic: Wrong use of timestamps with now_ms variable (cubic algo)"

As now_ms may wrap, one must use the ticks API to protect the cubic congestion
control algorithm implementation from side effects due to this.

Furthermore, to make the newreno congestion control algorithm more readable and easy
to maintain, add quic_cc_cubic_rp_cb() new callback for the "in recovery period"
state (QUIC_CC_ST_RP).

Must be backported to 2.7 and 2.6.
src/quic_cc_newreno.c