mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-04-19 21:45:33 +00:00
MINOR: session: add a streams field to the session struct
This will be used to hold the list of streams belonging to a given session.
This commit is contained in:
parent
82032f1223
commit
bcb86abaca
@ -40,6 +40,7 @@
|
|||||||
struct session {
|
struct session {
|
||||||
struct proxy *fe; /* the proxy this session depends on for the client side */
|
struct proxy *fe; /* the proxy this session depends on for the client side */
|
||||||
struct listener *listener; /* the listener by which the request arrived */
|
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 */
|
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 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) */
|
struct timeval tv_accept; /* date of the session's accept() in internal date (monotonic) */
|
||||||
|
@ -56,6 +56,7 @@ struct session *session_new(struct proxy *fe, struct listener *li, enum obj_type
|
|||||||
if (sess) {
|
if (sess) {
|
||||||
sess->listener = li;
|
sess->listener = li;
|
||||||
sess->fe = fe;
|
sess->fe = fe;
|
||||||
|
LIST_INIT(&sess->streams);
|
||||||
sess->origin = origin;
|
sess->origin = origin;
|
||||||
sess->accept_date = date; /* user-visible date for logging */
|
sess->accept_date = date; /* user-visible date for logging */
|
||||||
sess->tv_accept = now; /* corrected date for internal use */
|
sess->tv_accept = now; /* corrected date for internal use */
|
||||||
|
Loading…
Reference in New Issue
Block a user