]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: use dynamic cc_algo on bind_conf
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 19 Nov 2024 09:12:27 +0000 (10:12 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 19 Nov 2024 15:16:48 +0000 (16:16 +0100)
commita6504c9cfb6bb48ae93babb76a2ab10ddb014a79
tree5ea6ec979ce0e306948c67a4ae23be22c83a2801
parent796446a15e7db9923e8243a89155ddfb24bed374
MINOR: quic: use dynamic cc_algo on bind_conf

A QUIC congestion algorithm can be specified on the bind line via
keyword quic-cc-algo. As such, bind_conf structure has a member
quic_cc_algo.

Previously, if quic-cc-algo was set, bind_conf member was initialized to
one of the globally defined CC algo structure. This patch changes
bind_conf quic_cc_algo initialization to point to a dynamically
allocated copy of CC algo structure.

With this change, it will be possible to tweak individually each CC algo
of a bind line. This will be used to activate pacing on top of the
congestion algorithm.

As bind_conf member is dynamically allocated now, its member is now
freed via free_proxy() to prevent any leak.
src/cfgparse-quic.c
src/proxy.c