mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-22 14:21:25 +02:00
[MINOR] config: initialize stick tables after all the parsing
We'll be able to add data types to stick tables while parsing their users, so let's initialize them at the end.
This commit is contained in:
parent
f16d2b8c1b
commit
056f5683e3
@ -5319,9 +5319,6 @@ out_uri_auth_compat:
|
|||||||
curproxy->be_rsp_ana |= AN_RES_WAIT_HTTP | AN_RES_HTTP_PROCESS_BE;
|
curproxy->be_rsp_ana |= AN_RES_WAIT_HTTP | AN_RES_HTTP_PROCESS_BE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* init table on backend capabilities proxy */
|
|
||||||
stktable_init(&curproxy->table);
|
|
||||||
|
|
||||||
/* If the backend does requires RDP cookie persistence, we have to
|
/* If the backend does requires RDP cookie persistence, we have to
|
||||||
* enable the corresponding analyser.
|
* enable the corresponding analyser.
|
||||||
*/
|
*/
|
||||||
@ -5467,6 +5464,14 @@ out_uri_auth_compat:
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* initialize stick-tables on backend capable proxies. This must not
|
||||||
|
* be done earlier because the data size may be discovered while parsing
|
||||||
|
* other proxies.
|
||||||
|
*/
|
||||||
|
for (curproxy = proxy; curproxy; curproxy = curproxy->next)
|
||||||
|
if (curproxy->cap & PR_CAP_BE)
|
||||||
|
stktable_init(&curproxy->table);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Recount currently required checks.
|
* Recount currently required checks.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user