]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: session: add a streams field to the session struct
authorWilly Tarreau <w@1wt.eu>
Tue, 27 Jun 2017 13:13:43 +0000 (15:13 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 18 Aug 2017 11:26:35 +0000 (13:26 +0200)
This will be used to hold the list of streams belonging to a given session.

include/types/session.h
src/session.c

index 62c3a95fe084624f59e4fe069db210b91c498358..35a17e191717e061162c521e8a789f2b15fbbc87 100644 (file)
@@ -40,6 +40,7 @@
 struct session {
        struct proxy *fe;               /* the proxy this session depends on for the client side */
        struct listener *listener;      /* the listener by which the request arrived */
+       struct list streams;            /* list of streams attached to this session */
        enum obj_type *origin;          /* the connection / applet which initiated this session */
        struct timeval accept_date;     /* date of the session's accept() in user date */
        struct timeval tv_accept;       /* date of the session's accept() in internal date (monotonic) */
index 429577716bf57fd27f982ecbff2d4df69bf04612..a226559da237748c64b24945ab3174adec30c62d 100644 (file)
@@ -56,6 +56,7 @@ struct session *session_new(struct proxy *fe, struct listener *li, enum obj_type
        if (sess) {
                sess->listener = li;
                sess->fe = fe;
+               LIST_INIT(&sess->streams);
                sess->origin = origin;
                sess->accept_date = date; /* user-visible date for logging */
                sess->tv_accept   = now;  /* corrected date for internal use */