]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: mux-h2: count a protocol error when failing to parse a trailer
authorWilly Tarreau <w@1wt.eu>
Wed, 22 Apr 2026 09:58:15 +0000 (11:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 22 Apr 2026 13:57:20 +0000 (15:57 +0200)
commitc73a81469e4ae5a6679bf6d78127683bdf7981c6
tree8696164d8b9b9be2418a1df35bc5120d2ed04247
parent0bb52f7542b825baea6ab54a056b46a6497560e8
BUG/MINOR: mux-h2: count a protocol error when failing to parse a trailer

Commit aab1a60977 ("BUG/MEDIUM: h2/htx: always fail on too large trailers")
explicitly returned an RST_STREAM on failure to decode some trailers, and
used the code H2_ERR_INTERNAL_ERROR. However there are multiple possible
causes for this failure to happen, and it turns out that it's much more
likely to be related to a protocol error than a decompression error. So
let's change this to PROTOCOL_ERROR, and count a protocol error on the
proxy and in the session.

This can be backported to all stable versions (with adjustments related
to these versions, maybe focusing on 3.2 max is reasonable).
src/mux_h2.c