]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: h2: add the error code and the max/last stream IDs to "show fd"
authorWilly Tarreau <w@1wt.eu>
Tue, 24 Jul 2018 12:12:42 +0000 (14:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 24 Jul 2018 12:12:42 +0000 (14:12 +0200)
This is intented to help debugging H2 in field.

src/mux_h2.c

index 0f39db22cf7ea9cb6808a35d6da2384767535a20..764c0283067e529510c0ce8d42c0a4f26433dcce 100644 (file)
@@ -3524,8 +3524,12 @@ static void h2_show_fd(struct buffer *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 dbuf=%u/%u mbuf=%u/%u",
-                     h2c->st0, h2c->flags, h2c->nb_streams, h2c->nb_cs, fctl_cnt, send_cnt, tree_cnt, orph_cnt, (unsigned int)b_data(&h2c->dbuf), (unsigned int)b_size(&h2c->dbuf), (unsigned int)b_data(&h2c->mbuf), (unsigned int)b_size(&h2c->mbuf));
+       chunk_appendf(msg, " st0=%d err=%d maxid=%d lastid=%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->errcode, h2c->max_id, h2c->last_sid, h2c->flags,
+                     h2c->nb_streams, h2c->nb_cs, fctl_cnt, send_cnt, tree_cnt, orph_cnt,
+                     (unsigned int)b_data(&h2c->dbuf), (unsigned int)b_size(&h2c->dbuf),
+                     (unsigned int)b_data(&h2c->mbuf), (unsigned int)b_size(&h2c->mbuf));
 }
 
 /*******************************************************/