From: Willy Tarreau Date: Thu, 19 Jul 2018 08:54:43 +0000 (+0200) Subject: MINOR: h2: add the mux and demux buffer lengths on "show fd" X-Git-Tag: v1.9-dev1~170 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c65edac804573799fff0aaaae3ace5febb15c39e;p=thirdparty%2Fhaproxy.git MINOR: h2: add the mux and demux buffer lengths on "show fd" 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. --- diff --git a/src/mux_h2.c b/src/mux_h2.c index 747ec4040e..0d0101e353 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -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); } /*******************************************************/