[MINOR] stats socket: add show sess <id> to dump details about a session
When trying to spot some complex bugs, it's often needed to access
information on stuck sessions, which is quite difficult. This new
command helps one get detailed information about a session, with
flags, timers, states, etc... The buffer data are not dumped yet.
diff --git a/include/types/session.h b/include/types/session.h
index 6c8cfa0..5258750 100644
--- a/include/types/session.h
+++ b/include/types/session.h
@@ -212,7 +212,11 @@
int iid, type, sid; /* proxy id, type and service id if bounding of stats is enabled */
} stats;
struct {
- struct bref bref;
+ struct bref bref; /* back-reference from the session being dumped */
+ void *target; /* session we want to dump, or NULL for all */
+ unsigned int uid; /* if non-null, the uniq_id of the session being dumped */
+ int section; /* section of the session being dumped */
+ int pos; /* last position of the current session's buffer */
} sess;
struct {
int iid; /* if >= 0, ID of the proxy to filter on */