]> git.kaiwu.me - haproxy.git/commit
MINOR: h3: remove dead code on h3_rcv_buf() error path
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 19 Oct 2026 11:55:19 +0000 (13:55 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 20 Oct 2026 08:51:47 +0000 (10:51 +0200)
commit8eb164e14d340fa5a709f53b5d5d1e003ba68d2e
treee1e4f3884ecc4c4bc66e06dc0ed5af107e9e1204
parentf739a0c371d4409041b3a4e00f33f13bd1173ee4
MINOR: h3: remove dead code on h3_rcv_buf() error path

Previous patches rework error handling and glitch reporting in
h3_rcv_buf() after a connection level error occured. A similar pattern
is adopted after each frame parsers : when a connection level error is
encountered, glitch is incremented and parsing is immediately
interrupted using early return via err label.

To ensure the code remains safe though with future evolution, h3c <err>
check on h3_rcv_buf() epilogue is replaced so that qcc_set_error() is
only set if not already done, which is currently unnecessary. A
WARN_ON() should help to detect such cases.
src/h3.c