BUILD: quic: fix overflow in global tune
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 30 Jan 2025 17:01:53 +0000 (18:01 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Wed, 16 Apr 2025 08:47:51 +0000 (10:47 +0200)
commit8d7c8b79d0e881531bae0ed4220ec7d1dd949d67
tree8b8924a524347a0eae40d174d4dfff52e1cad5dd
parentc4aea9f62b07f2831d327c0b6a6fecc1815767aa
BUILD: quic: fix overflow in global tune

A new global option was recently introduced to disable pacing. However,
the value used (1<<31) caused issue with some compiler as options field
used for storage is declared as int. Move pacing deactivation flag
outside into the newly defined quic_tune to fix this.

This should be backported up to 3.1 after a period of observation. Note
that it relied on the previous patch which defined new quic_tune type.

(cherry picked from commit b849ee5fa35b7a909869db1dfd19f450f3172034)
[ada: patch was manually adapted since a19d9b0486 ("MAJOR: quic: mark
 pacing as stable and enable it by default") was not backported]
Signed-off-by: Aurelien DARRAGON <adarragon@haproxy.com>
include/haproxy/global-t.h
include/haproxy/quic_tune-t.h
src/cfgparse-quic.c
src/cfgparse.c
src/haproxy.c
src/mux_quic.c