]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: Wrong use of now_ms timestamps (cubic algo)
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 21 Mar 2023 10:54:02 +0000 (11:54 +0100)
committerFrédéric Lécaille <flecaille@haproxy.com>
Fri, 31 Mar 2023 07:54:59 +0000 (09:54 +0200)
commitd7243318c4496a2bc27ea4e9e7834fce3bc3832a
treeb31ffbb94cc309ea0a4db7c3ef35f5242486efc6
parent6549f53fb60f5870c447447105a26af67a1cc996
BUG/MINOR: quic: Wrong use of now_ms timestamps (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 cubic congestion control algorithm more readable and easy
to maintain, adding a new state ("in recovery period" QUIC_CC_ST_RP new enum) helps
in reaching this goal. Implement quic_cc_cubic_rp_cb() which is the callback for
this new state.

Must be backported to 2.7 and 2.6.
include/haproxy/quic_cc-t.h
include/haproxy/quic_cc.h
src/quic_cc_cubic.c