]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: mux-h1: report payload parsing glitches to the session
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 7 Oct 2026 09:54:05 +0000 (11:54 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 16 Oct 2026 17:10:27 +0000 (19:10 +0200)
commit60ad05efa270b95078a52b7ffa2fd9d549835de4
tree94f23f54987ca4e19c31a1fba895e74630516cb6
parent53536fd53db064ba3e4107fa45d28aa3bd109143
BUG/MINOR: mux-h1: report payload parsing glitches to the session

Glitches detected by the H1 mux on a frontend connection are reported to the
session by h1_process(), by comparing the number of glitches before and
after parsing. But h1_process() only parses the beginning of messages. Once
the stream is created, the payload is parsed from h1_rcv_buf(), and the
glitches reported there (invalid chunk sizes, invalid chunk CRLF, invalid
trailers...) only increment the connection's counter, never the session's
one.

Now h1_rcv_buf() reports the new glitches to the session, like h1_process()
does.

This was introduced with the glitches support by commit 05b457002 ("MEDIUM:
mux-h1: implement basic glitches support") in 3.4. So this patch should be
backported to 3.4.
src/mux_h1.c