]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: cli: report the msg state in full text in "show sess $PTR"
authorWilly Tarreau <w@1wt.eu>
Fri, 23 Nov 2012 10:19:33 +0000 (11:19 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 23 Nov 2012 10:31:56 +0000 (11:31 +0100)
It's more convenient to debug with real state names.

src/dumpstats.c

index a9ecdb3c812185efae60f627dcaba44181cd8a1e..17bf973c6241fdd39ad16b59c400e7755e2e2fe5 100644 (file)
@@ -49,6 +49,7 @@
 #include <proto/log.h>
 #include <proto/pipe.h>
 #include <proto/listener.h>
+#include <proto/proto_http.h>
 #include <proto/proto_uxst.h>
 #include <proto/proxy.h>
 #include <proto/session.h>
@@ -3599,9 +3600,9 @@ static int stats_dump_full_sess_to_buffer(struct stream_interface *si)
                              sess->si[1].conn->t.sock.fd >= 0 ? fdtab[sess->si[1].conn->t.sock.fd].spec_e : 0);
 
                chunk_appendf(&trash,
-                            "  txn=%p (flags=0x%x meth=%d status=%d req.st=%d rsp.st=%d)\n",
+                            "  txn=%p (flags=0x%x meth=%d status=%d req.st=%s rsp.st=%s)\n",
                             &sess->txn, sess->txn.flags, sess->txn.meth, sess->txn.status,
-                            sess->txn.req.msg_state, sess->txn.rsp.msg_state);
+                            http_msg_state_str(sess->txn.req.msg_state), http_msg_state_str(sess->txn.rsp.msg_state));
 
 
                chunk_appendf(&trash,