mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-19 21:45:33 +00:00
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:
parent
af064b497a
commit
cf3fe1eed4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user