]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: ensure cwnd limits are always enforced
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 20 Jan 2025 15:24:21 +0000 (16:24 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 29 Apr 2025 13:10:06 +0000 (15:10 +0200)
commit7bad88c35c7547d52ac170ed9f89f29cccd6c46c
treedeb4e6405ff7d824be33aa710ba46f782ebf29a4
parentc01d4552881301093d982efbfb4734ba5d4c65b6
BUG/MINOR: quic: ensure cwnd limits are always enforced

Congestion window is limit by a minimal and maximum values which can
never be exceeded. Min value is hardcoded to 2 datagrams as recommended
by the specification. Max value is specified via haproxy configuration.

These values must be respected each time the congestion window size is
adjusted. However, in some rare occasions, limit were not always
enforced. Fix this by implementing wrappers to set or increment the
congestion window. These functions ensure limits are always applied
after the operation.

Additionnally, wrappers also ensure that if window reached a new maximum
value, it is saved in <cwnd_last_max> field.

This should be backported up to 2.6, after a brief period of
observation.
include/haproxy/quic_cc.h
src/quic_cc.c
src/quic_cc_bbr.c
src/quic_cc_cubic.c
src/quic_cc_newreno.c