From cf3fe1eed48b01ba3bba226810c06a253561ed41 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 3 Oct 2024 16:04:04 +0200 Subject: [PATCH] MINOR: mux-h2/traces: print the size of the DATA frames DATA frames produce a special trace with the amount of transferred data in arg4, but this was not reported by h2_trace(). This commit just adds it. --- src/mux_h2.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mux_h2.c b/src/mux_h2.c index 93066eb06e..c58b6fb7e8 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -582,6 +582,9 @@ static void h2_trace(enum trace_level level, uint64_t mask, const struct trace_s if (h2s->id && h2s->errcode) chunk_appendf(&trace_buf, " err=%s/%02x", h2_err_str(h2s->errcode), h2s->errcode); } + + if ((mask & H2_EV_RX_DATA) && level == TRACE_LEVEL_DATA) + chunk_appendf(&trace_buf, " data=%llu", (ullong)a4); } /* Let's dump decoded requests and responses right after parsing. They -- 2.39.5