mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-24 15:49:14 -04:00
[MINOR] session: add a pointer to the tracked counters for the source
We'll have to keep counters of various criteria specific to the session's source. When we get one, keep a pointer to it in the session.
This commit is contained in:
parent
e7f3d7ab9f
commit
5214be1b22
2 changed files with 2 additions and 0 deletions
|
|
@ -184,6 +184,7 @@ struct session {
|
|||
int flags;
|
||||
} store[8]; /* tracked stickiness values to store */
|
||||
int store_count;
|
||||
struct stksess *tracked_src_counters; /* tracked counters for this source */
|
||||
|
||||
struct {
|
||||
int logwait; /* log fields waiting to be collected : LW_* */
|
||||
|
|
|
|||
|
|
@ -174,6 +174,7 @@ int session_accept(struct listener *l, int cfd, struct sockaddr_storage *addr)
|
|||
|
||||
/* init store persistence */
|
||||
s->store_count = 0;
|
||||
s->tracked_src_counters = NULL;
|
||||
|
||||
/* Adjust some socket options */
|
||||
if (unlikely(fcntl(cfd, F_SETFL, O_NONBLOCK) == -1)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue