]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: quic: fix zero value of tune.quic.sec.stateless-reset-rate
authorFrederic Lecaille <flecaille@haproxy.com>
Thu, 27 Aug 2026 13:59:41 +0000 (15:59 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Fri, 28 Aug 2026 15:41:46 +0000 (17:41 +0200)
commitaf4106fb297777b72d6c05dc7fb9c51e021c02fe
tree16bd4cfaaa60d73eec442329d43369bcf0ae0895
parentdd13b6f3f5eb44e8f21c2996ab721cb435b7bb81
BUG/MINOR: quic: fix zero value of tune.quic.sec.stateless-reset-rate

quic_stateless_reset_rate_init() split <quic_tune.sec_stateless_reset_rate>
across threads as (rate + tid) / nbthread, which can round down to 0 when
<rate> is lower than <nbthread>. send_stateless_reset() reads a 0 value as
"no limit", so a low <rate> silently disabled rate limiting on some
threads instead of restricting it further.

Fix it by giving every thread the same value, rounded up so it can never
reach 0: (rate + nbthread - 1) / nbthread. Updated the doc accordingly.

This bug was introduced by commit 297321e3e ("MINOR: quic: add
tune.quic.sec.stateless-reset-rate"), only present in this dev branch,
so no backport is needed.
doc/configuration.txt
src/quic_tx.c