]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: h2/trace: report the frame type when known
authorWilly Tarreau <w@1wt.eu>
Wed, 25 Sep 2019 05:28:44 +0000 (07:28 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 25 Sep 2019 06:34:15 +0000 (08:34 +0200)
commit73db434f7f7fc86cec3df51e74affe0f9c3a7674
tree4848567e5cf637b8b084edb6945fc9822f316bdf
parent2d22144559f84838b15e4d5c72a40bcbe7e1e729
MINOR: h2/trace: report the frame type when known

In state match error cases, we don't know what frame type was received
because we don't reach the frame parsers. Let's add the demuxed frame
type and flags in the trace when it's known. For this we make sure to
always reset h2c->dsi when switching back to FRAME_H. Only one location
was missing. The state transitions were not always clear (sometimes
reported before, sometimes after), these were clarified by being
reported only before switching.
src/mux_h2.c