]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: cli/stream: add the conn_stream in "show sess" output
authorWilly Tarreau <w@1wt.eu>
Tue, 18 Dec 2018 13:28:24 +0000 (14:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 18 Dec 2018 13:30:09 +0000 (14:30 +0100)
The "show sess" output didn't report the conn_stream nor its flags,
which was a bit problematic. Now it's done.

src/stream.c

index 7c2a63aca358957d2a9b929c28a93b1734a7e127..941f4897926991c032564f236ff8931133169ff5 100644 (file)
@@ -3000,6 +3000,8 @@ static int stats_dump_full_strm_to_buffer(struct stream_interface *si, struct st
                                      conn->handle.fd >= 0 ? fdtab[conn->handle.fd].cache.next >= -2 : 0,
                                      conn->handle.fd >= 0 ? !!(fdtab[conn->handle.fd].update_mask & tid_bit) : 0,
                                      conn->handle.fd >= 0 ? fdtab[conn->handle.fd].thread_mask: 0);
+
+                       chunk_appendf(&trash, "      cs=%p csf=0x%08x ctx=%p\n", cs, cs->flags, cs->ctx);
                }
                else if ((tmpctx = objt_appctx(strm->si[0].end)) != NULL) {
                        chunk_appendf(&trash,
@@ -3035,6 +3037,8 @@ static int stats_dump_full_strm_to_buffer(struct stream_interface *si, struct st
                                      conn->handle.fd >= 0 ? fdtab[conn->handle.fd].cache.next >= -2 : 0,
                                      conn->handle.fd >= 0 ? !!(fdtab[conn->handle.fd].update_mask & tid_bit) : 0,
                                      conn->handle.fd >= 0 ? fdtab[conn->handle.fd].thread_mask: 0);
+
+                       chunk_appendf(&trash, "      cs=%p csf=0x%08x ctx=%p\n", cs, cs->flags, cs->ctx);
                }
                else if ((tmpctx = objt_appctx(strm->si[1].end)) != NULL) {
                        chunk_appendf(&trash,