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.
This commit is contained in:
Willy Tarreau 2024-10-03 16:04:04 +02:00
parent af064b497a
commit cf3fe1eed4

View File

@ -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