]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: stats: report a "waiting" flags for sessions
authorWilly Tarreau <w@1wt.eu>
Wed, 26 Nov 2014 17:05:38 +0000 (18:05 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 24 Dec 2014 22:47:33 +0000 (23:47 +0100)
This flag indicates if the session is still waiting for some memory.

src/dumpstats.c

index a5c73fa70e5eb825b40f538bb11b373a939cc0d3..1abc7a929d07acb6adaa0d0ffcc287f73ea019f1 100644 (file)
@@ -5119,9 +5119,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",