From: Willy Tarreau Date: Fri, 18 Sep 2020 05:39:29 +0000 (+0200) Subject: MINOR: h2/trace: also display the remaining frame length in traces X-Git-Tag: v2.3-dev5~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8520d87198fa0682816f1d8ebcc831ecd0bfba5d;p=thirdparty%2Fhaproxy.git MINOR: h2/trace: also display the remaining frame length in traces It's often missing when debugging, even though it's often zero for control frames or after data are consumed. --- diff --git a/src/mux_h2.c b/src/mux_h2.c index 15cafea5c1..1a9f15ca2d 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -508,7 +508,7 @@ static void h2_trace(enum trace_level level, uint64_t mask, const struct trace_s if (h2c->dsi >= 0 && (mask & (H2_EV_RX_FRAME|H2_EV_RX_FHDR)) == (H2_EV_RX_FRAME|H2_EV_RX_FHDR)) { - chunk_appendf(&trace_buf, " dft=%s/%02x", h2_ft_str(h2c->dft), h2c->dff); + chunk_appendf(&trace_buf, " dft=%s/%02x dfl=%d", h2_ft_str(h2c->dft), h2c->dff, h2c->dfl); } if (h2s) {