]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: h2/trace: also display the remaining frame length in traces
authorWilly Tarreau <w@1wt.eu>
Fri, 18 Sep 2020 05:39:29 +0000 (07:39 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 18 Sep 2020 05:39:29 +0000 (07:39 +0200)
It's often missing when debugging, even though it's often zero for
control frames or after data are consumed.

src/mux_h2.c

index 15cafea5c19c59e5772e99090231fcc4a8d0cc83..1a9f15ca2ddf6da5f4ce79d15ce4e1f5b4801af6 100644 (file)
@@ -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) {