mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-10 17:17:06 +02:00
[MINOR] only call flow analysers when their read side is connected.
It's useless to call flow analysers when their read side has not seen a connection yet.
This commit is contained in:
parent
2bea3a1155
commit
36e6a41bc8
@ -762,22 +762,22 @@ void process_session(struct task *t, int *next)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ((rqf_req ^ s->req->flags) & BF_MASK_ANALYSER) {
|
if ((rqf_req ^ s->req->flags) & BF_MASK_ANALYSER) {
|
||||||
resync = 1;
|
|
||||||
/* the analysers must block it themselves */
|
/* the analysers must block it themselves */
|
||||||
|
if (s->req->prod->state >= SI_ST_EST) {
|
||||||
|
resync = 1;
|
||||||
s->req->flags |= BF_MAY_FORWARD;
|
s->req->flags |= BF_MAY_FORWARD;
|
||||||
if (s->req->analysers) {
|
if (s->req->analysers)
|
||||||
process_request(s);
|
process_request(s);
|
||||||
}
|
}
|
||||||
rqf_req = s->req->flags;
|
rqf_req = s->req->flags;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((rpf_rep ^ s->rep->flags) & BF_MASK_ANALYSER) {
|
if ((rpf_rep ^ s->rep->flags) & BF_MASK_ANALYSER) {
|
||||||
resync = 1;
|
|
||||||
/* the analysers must block it themselves */
|
/* the analysers must block it themselves */
|
||||||
if (s->req->cons->state >= SI_ST_EST)
|
if (s->rep->prod->state >= SI_ST_EST) {
|
||||||
|
resync = 1;
|
||||||
s->rep->flags |= BF_MAY_FORWARD;
|
s->rep->flags |= BF_MAY_FORWARD;
|
||||||
|
if (s->rep->analysers)
|
||||||
if (s->rep->analysers) {
|
|
||||||
process_response(s);
|
process_response(s);
|
||||||
}
|
}
|
||||||
rpf_rep = s->rep->flags;
|
rpf_rep = s->rep->flags;
|
||||||
|
Loading…
Reference in New Issue
Block a user