]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: h2: add the mux and demux buffer lengths on "show fd"
authorWilly Tarreau <w@1wt.eu>
Thu, 19 Jul 2018 08:54:43 +0000 (10:54 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 19 Jul 2018 08:54:43 +0000 (10:54 +0200)
It is convenient during debugging sessions to know if the mux and demux
buffers are empty/full/other. Let's report this on "show fd" output.

src/mux_h2.c

index 747ec4040e8528b6a5ac32591f717d5b3705915a..0d0101e35308e1a96bd15847b25c5b27b6cdcb14 100644 (file)
@@ -3455,8 +3455,8 @@ static void h2_show_fd(struct chunk *msg, struct connection *conn)
                node = eb32_next(node);
        }
 
-       chunk_appendf(msg, " st0=%d flg=0x%08x nbst=%u nbcs=%u fctl_cnt=%d send_cnt=%d tree_cnt=%d orph_cnt=%d",
-                     h2c->st0, h2c->flags, h2c->nb_streams, h2c->nb_cs, fctl_cnt, send_cnt, tree_cnt, orph_cnt);
+       chunk_appendf(msg, " st0=%d flg=0x%08x nbst=%u nbcs=%u fctl_cnt=%d send_cnt=%d tree_cnt=%d orph_cnt=%d dbuf=%u/%u mbuf=%u/%u",
+                     h2c->st0, h2c->flags, h2c->nb_streams, h2c->nb_cs, fctl_cnt, send_cnt, tree_cnt, orph_cnt, h2c->dbuf->i, h2c->dbuf->size, h2c->mbuf->o, h2c->mbuf->size);
 }
 
 /*******************************************************/