]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: mux-h1: Add the subscription events in "show fd" command
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Jan 2019 14:16:06 +0000 (15:16 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Jan 2019 14:23:07 +0000 (15:23 +0100)
It could be helpful to debug frozen connections.

The patch may be backported to 1.9.

src/mux_h1.c

index bdce6dc7f3459758ecb9642012fd013c25c99bb4..4658e48a8bae60043a56ef6be6ef6476c344ab10 100644 (file)
@@ -2314,8 +2314,8 @@ static void h1_show_fd(struct buffer *msg, struct connection *conn)
        struct h1c *h1c = conn->ctx;
        struct h1s *h1s = h1c->h1s;
 
-       chunk_appendf(msg, " h1c.flg=0x%x .ibuf=%u@%p+%u/%u .obuf=%u@%p+%u/%u",
-                     h1c->flags,
+       chunk_appendf(msg, " h1c.flg=0x%x .sub=%d .ibuf=%u@%p+%u/%u .obuf=%u@%p+%u/%u",
+                     h1c->flags,  h1c->wait_event.events,
                      (unsigned int)b_data(&h1c->ibuf), b_orig(&h1c->ibuf),
                      (unsigned int)b_head_ofs(&h1c->ibuf), (unsigned int)b_size(&h1c->ibuf),
                       (unsigned int)b_data(&h1c->obuf), b_orig(&h1c->obuf),