]> git.kaiwu.me - haproxy.git/commit
CLEANUP: mux-h2: fix minor output debugging format issues
authorWilly Tarreau <w@1wt.eu>
Mon, 11 May 2026 12:49:36 +0000 (14:49 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 11 May 2026 14:04:19 +0000 (16:04 +0200)
commite9cc913e3c474ce94b23f3f509fce20c508302b1
tree3fc9bee06ae02beab6e1517cbba15fcc3eba79b9
parentfa9cefd277cd02726d51eb0dda9e5ba79270da87
CLEANUP: mux-h2: fix minor output debugging format issues

In h2_dump_h2s_info(), the tl.calls was being printed as signed instead
of unsigned, which is not correct but harmless (only used with "show
fd"). In the same function, we don't check if h2s->sd is valid while
dereferencing it. In practise it is valid since "show fd" is run under
thread isolation, but it's far from being obvious, and if conditions
would later change, we don't know it could be printed between h2s_new()
and h2s_frt_stream_new(). Finally in h2s_make_data() a wrong set of
H2_EV_RX_* flags were used instead of H2_EV_TX_* to emit traces.
src/mux_h2.c