From: Willy Tarreau Date: Mon, 7 Jan 2019 09:38:10 +0000 (+0100) Subject: MINOR: stream/cli: report more info about the HTTP messages on "show sess all" X-Git-Tag: v2.0-dev1~258 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7778b59be1d444c7e0cb5b2fd6c10d9aa54f773d;p=thirdparty%2Fhaproxy.git MINOR: stream/cli: report more info about the HTTP messages on "show sess all" 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. --- diff --git a/src/stream.c b/src/stream.c index 3dd5a20bad..291858941a 100644 --- a/src/stream.c +++ b/src/stream.c @@ -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",