From: Willy Tarreau Date: Sat, 20 Dec 2025 16:34:05 +0000 (+0100) Subject: MINOR: mux-h2: add missing glitch count for non-decodable H2 headers X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52adeef7e154f7fc9401c923517051c3ff6282fd;p=thirdparty%2Fhaproxy.git MINOR: mux-h2: add missing glitch count for non-decodable H2 headers One rare error case could produce a protocol error on the stream when not being able to decode response headers wasn't being accounted as a glitch, so let's fix it. --- diff --git a/src/mux_h2.c b/src/mux_h2.c index 857d1dfa0..9c741b43b 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -3721,6 +3721,7 @@ static struct h2s *h2c_bck_handle_headers(struct h2c *h2c, struct h2s *h2s) } /* stream error : send RST_STREAM */ + h2c_report_glitch(h2c, 1, "couldn't decode response HEADERS"); TRACE_ERROR("couldn't decode response HEADERS", H2_EV_RX_FRAME|H2_EV_RX_HDR, h2c->conn, h2s); h2s_error(h2s, H2_ERR_PROTOCOL_ERROR); h2c->st0 = H2_CS_FRAME_E;