From: Willy Tarreau Date: Thu, 3 Oct 2024 14:04:04 +0000 (+0200) Subject: MINOR: mux-h2/traces: print the size of the DATA frames X-Git-Tag: v3.1-dev10~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf3fe1eed;p=thirdparty%2Fhaproxy.git 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. --- 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