]> git.kaiwu.me - haproxy.git/commit
BUG/MAJOR: mux-quic: do not crash on connection error after glitch threshold
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 6 Oct 2026 16:18:49 +0000 (18:18 +0200)
committerOlivier Houchard <cognet@ci0.org>
Mon, 19 Oct 2026 14:04:04 +0000 (16:04 +0200)
commit19910335dc7513fdf2896c42f0d5a6283a7ab6f2
tree2c767499c9957664e09486a8fc18ac78d79ee5c1
parentd783bdb5c1198d10aa0d3c5b9f5fa8ad87847f78
BUG/MAJOR: mux-quic: do not crash on connection error after glitch threshold

When a glitch reported by the HTTP/3 parser (SETTINGS/GOAWAY parsing or
QPACK decoding error) reaches tune.quic.{fe,be}.sec.glitches-threshold,
_qcc_report_glitch() sets a connection error before the caller also
calls qcc_set_error() with h3c->err. The BUG_ON() on double call then
kills the process, remotely triggerable by any client.

Make qcc_set_error() keep the first error and ignore subsequent calls.

Introduced by commit 0d35f8d91 ("MINOR: h3: report glitch on RFC
violation") in 3.0-dev12. Must be backported to all stable versions
since 3.0.
src/mux_quic.c