mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-11-15 07:51:04 +01:00
[MEDIUM] session: call the frontend_decode_proxy analyser on proxied connections
This analyser must absolutely be the earliest one to process contents, given the nature of the protocol.
This commit is contained in:
parent
8b0cbf9969
commit
3041b9fcc3
@ -27,6 +27,7 @@
|
|||||||
#include <proto/checks.h>
|
#include <proto/checks.h>
|
||||||
#include <proto/dumpstats.h>
|
#include <proto/dumpstats.h>
|
||||||
#include <proto/freq_ctr.h>
|
#include <proto/freq_ctr.h>
|
||||||
|
#include <proto/frontend.h>
|
||||||
#include <proto/hdr_idx.h>
|
#include <proto/hdr_idx.h>
|
||||||
#include <proto/log.h>
|
#include <proto/log.h>
|
||||||
#include <proto/session.h>
|
#include <proto/session.h>
|
||||||
@ -1435,6 +1436,12 @@ struct task *process_session(struct task *t)
|
|||||||
while (ana_list && max_loops--) {
|
while (ana_list && max_loops--) {
|
||||||
/* Warning! ensure that analysers are always placed in ascending order! */
|
/* Warning! ensure that analysers are always placed in ascending order! */
|
||||||
|
|
||||||
|
if (ana_list & AN_REQ_DECODE_PROXY) {
|
||||||
|
if (!frontend_decode_proxy_request(s, s->req, AN_REQ_DECODE_PROXY))
|
||||||
|
break;
|
||||||
|
UPDATE_ANALYSERS(s->req->analysers, ana_list, ana_back, AN_REQ_DECODE_PROXY);
|
||||||
|
}
|
||||||
|
|
||||||
if (ana_list & AN_REQ_INSPECT_FE) {
|
if (ana_list & AN_REQ_INSPECT_FE) {
|
||||||
if (!tcp_inspect_request(s, s->req, AN_REQ_INSPECT_FE))
|
if (!tcp_inspect_request(s, s->req, AN_REQ_INSPECT_FE))
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user