mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-12 08:27:24 +00:00
[MINOR] add an analyser state in struct session
It will be very convenient to have an analyser state in the session. It will always be initialized to zero. The analysers can make use of it, but must reset it to zero when they leave.
This commit is contained in:
parent
7f00651419
commit
ff8d42ea68
@ -174,6 +174,7 @@ struct session {
|
||||
struct server *prev_srv; /* the server the was running on, after a redispatch, otherwise NULL */
|
||||
struct pendconn *pend_pos; /* if not NULL, points to the position in the pending queue */
|
||||
struct http_txn txn; /* current HTTP transaction being processed. Should become a list. */
|
||||
int ana_state; /* analyser state, used by analysers, always set to zero between them */
|
||||
struct {
|
||||
int logwait; /* log fields waiting to be collected : LW_* */
|
||||
struct timeval accept_date; /* date of the accept() in user date */
|
||||
|
@ -171,6 +171,7 @@ int event_accept(int fd) {
|
||||
}
|
||||
|
||||
s->cli_state = CL_STDATA;
|
||||
s->ana_state = 0; /* analysers may change it but must reset it upon exit */
|
||||
s->req = s->rep = NULL; /* will be allocated later */
|
||||
|
||||
s->si[0].state = s->si[0].prev_state = SI_ST_EST;
|
||||
|
Loading…
Reference in New Issue
Block a user