From: Willy Tarreau Date: Wed, 22 Apr 2026 11:51:10 +0000 (+0200) Subject: BUG/MINOR: mux-h2: count a proto error when rejecting a stream on parsing error X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=8f7ee0a59ffb9bb637a6d4d669ff29cf04618940;p=thirdparty%2Fhaproxy.git BUG/MINOR: mux-h2: count a proto error when rejecting a stream on parsing error The proxy error counter was not updated in h2c_frt_handle_headers() in case of failure to decode a HEADERS frame. Make sure to keep it updated. This can be backported to all stable versions. --- diff --git a/src/mux_h2.c b/src/mux_h2.c index 99a6be282..473e18097 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -3648,6 +3648,7 @@ static struct h2s *h2c_frt_handle_headers(struct h2c *h2c, struct h2s *h2s) } /* recoverable stream error (e.g. too large request) */ + HA_ATOMIC_INC(&h2c->px_counters->strm_proto_err); h2_sess_log_strm(h2c->conn->owner); TRACE_USER("rcvd unparsable H2 request", H2_EV_RX_FRAME|H2_EV_RX_HDR|H2_EV_STRM_NEW|H2_EV_STRM_END, h2c->conn, h2s, &rxbuf); goto strm_err;