]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: define quic_cc_algo as const
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 1 Dec 2025 12:53:59 +0000 (13:53 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 1 Dec 2025 14:05:41 +0000 (15:05 +0100)
commit979588227ff02d950c3b4ec7eeef59355b20dd52
tree807e6d5bb6b2a7188cfc6b240ca2ce945621c7b4
parentacbb378136952f45c2a0706c2fb264799b6c3de8
MINOR: quic: define quic_cc_algo as const

Each QUIC congestion algorithm is defined as a structure with callbacks
in it. Every quic_conn has a member pointing to the configured
algorithm, inherited from the bind-conf keyword or to the default CUBIC
value.

Convert all these definitions to const. This ensures that there never
will be an accidental modification of a globally shared structure. This
also requires to mark quic_cc_algo field in bind_conf and quic_cc as
const.
include/haproxy/listener-t.h
include/haproxy/quic_cc-t.h
include/haproxy/quic_cc.h
src/cfgparse-quic.c
src/quic_cc.c
src/quic_cc_bbr.c
src/quic_cc_cubic.c
src/quic_cc_newreno.c
src/quic_cc_nocc.c
src/quic_conn.c