]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: stream/cli: report more info about the HTTP messages on "show sess all"
authorWilly Tarreau <w@1wt.eu>
Mon, 7 Jan 2019 09:38:10 +0000 (10:38 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 7 Jan 2019 09:38:10 +0000 (10:38 +0100)
The "show sess all" command didn't allow to detect whether compression
is in use for a given stream, which is sometimes annoying. Let's add a
few more info about the HTTP messages, namely the flags, body len, chunk
len and the "next" pointer.

src/stream.c

index 3dd5a20badb646a7ed164f73c2b0f69484891e14..291858941a4b786be7a2dd0ebb445b8fbfdc249f 100644 (file)
@@ -2951,9 +2951,13 @@ static int stats_dump_full_strm_to_buffer(struct stream_interface *si, struct st
 
                if (strm->txn)
                        chunk_appendf(&trash,
-                            "  txn=%p flags=0x%x meth=%d status=%d req.st=%s rsp.st=%s\n",
+                             "  txn=%p flags=0x%x meth=%d status=%d req.st=%s rsp.st=%s\n"
+                             "      req.f=0x%02x blen=%llu chnk=%llu next=%u\n"
+                             "      rsp.f=0x%02x blen=%llu chnk=%llu next=%u\n",
                              strm->txn, strm->txn->flags, strm->txn->meth, strm->txn->status,
-                             h1_msg_state_str(strm->txn->req.msg_state), h1_msg_state_str(strm->txn->rsp.msg_state));
+                             h1_msg_state_str(strm->txn->req.msg_state), h1_msg_state_str(strm->txn->rsp.msg_state),
+                             strm->txn->req.flags, strm->txn->req.body_len, strm->txn->req.chunk_len, strm->txn->req.next,
+                             strm->txn->rsp.flags, strm->txn->rsp.body_len, strm->txn->rsp.chunk_len, strm->txn->rsp.next);
 
                chunk_appendf(&trash,
                             "  si[0]=%p (state=%s flags=0x%02x endp0=%s:%p exp=%s et=0x%03x sub=%d)\n",