mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
MINOR: cfgparse: move proxy post-init in a dedicated function
A lot of proxies initialization code is delayed on post-parsing stage, as it depends on the configuration fully parsed. This is performed via a loop on proxies_list. Extract this code in a dedicated function proxy_finalize(). This patch will be useful for dynamic backends creation. Note that for the moment the code has been extracted as-is. With each new features, some init code was added there. This has become a giant loop with no real ordering. A future patch may provide some cleanup in order to reorganize this.
This commit is contained in:
parent
2c8ad11b73
commit
a8bc83bea5
3 changed files with 1315 additions and 1285 deletions
|
|
@ -97,6 +97,7 @@ int resolve_stick_rule(struct proxy *curproxy, struct sticking_rule *mrule);
|
|||
void free_stick_rules(struct list *rules);
|
||||
void free_server_rules(struct list *srules);
|
||||
int proxy_init_per_thr(struct proxy *px);
|
||||
int proxy_finalize(struct proxy *px, int *err_code);
|
||||
|
||||
/*
|
||||
* This function returns a string containing the type of the proxy in a format
|
||||
|
|
|
|||
1290
src/cfgparse.c
1290
src/cfgparse.c
File diff suppressed because it is too large
Load diff
1309
src/proxy.c
1309
src/proxy.c
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue