From 78c9163c8d5dbd75b6c35dbaf64e02e6eb23136c Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Wed, 26 Nov 2014 18:05:38 +0100 Subject: MINOR: stats: report a "waiting" flags for sessions This flag indicates if the session is still waiting for some memory. --- src/dumpstats.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dumpstats.c b/src/dumpstats.c index 26b0a9f..e3c8840 100644 --- a/src/dumpstats.c +++ b/src/dumpstats.c @@ -5123,9 +5123,9 @@ static int stats_dump_full_sess_to_buffer(struct stream_interface *si, struct se human_time(now.tv_sec - sess->logs.accept_date.tv_sec, 1)); 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 waiting=%d\n", &sess->txn, sess->txn.flags, sess->txn.meth, sess->txn.status, - http_msg_state_str(sess->txn.req.msg_state), http_msg_state_str(sess->txn.rsp.msg_state)); + http_msg_state_str(sess->txn.req.msg_state), http_msg_state_str(sess->txn.rsp.msg_state), !LIST_ISEMPTY(&sess->buffer_wait)); chunk_appendf(&trash, " si[0]=%p (state=%s flags=0x%02x endp0=%s:%p exp=%s, et=0x%03x)\n", -- 1.7.12.1