Skip to content

Commit 52adeef

Browse files
committed
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.
1 parent c8750e4 commit 52adeef

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/mux_h2.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3721,6 +3721,7 @@ static struct h2s *h2c_bck_handle_headers(struct h2c *h2c, struct h2s *h2s)
37213721
}
37223722

37233723
/* stream error : send RST_STREAM */
3724+
h2c_report_glitch(h2c, 1, "couldn't decode response HEADERS");
37243725
TRACE_ERROR("couldn't decode response HEADERS", H2_EV_RX_FRAME|H2_EV_RX_HDR, h2c->conn, h2s);
37253726
h2s_error(h2s, H2_ERR_PROTOCOL_ERROR);
37263727
h2c->st0 = H2_CS_FRAME_E;

0 commit comments

Comments
 (0)