diff --git a/src/mux_h2.c b/src/mux_h2.c index e8aeaca46..99a6be282 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -3561,8 +3561,10 @@ static struct h2s *h2c_frt_handle_headers(struct h2c *h2c, struct h2s *h2s) /* Failed to decode this frame (e.g. too large request) * but the HPACK decompressor is still synchronized. */ + session_inc_http_err_ctr(h2c->conn->owner); + HA_ATOMIC_INC(&h2c->px_counters->strm_proto_err); h2_sess_log_strm(h2c->conn->owner); - h2s_error(h2s, H2_ERR_INTERNAL_ERROR); + h2s_error(h2s, H2_ERR_PROTOCOL_ERROR); TRACE_USER("Stream error decoding H2 trailers", H2_EV_RX_FRAME|H2_EV_RX_HDR|H2_EV_STRM_NEW|H2_EV_STRM_END, h2c->conn, 0, h2s_rxbuf_tail(h2s)); h2c->st0 = H2_CS_FRAME_E; goto out;