mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 13:51:26 +02:00
BUG/MAJOR: mworker: fix infinite loop on master with no proxies.
The master is re-exec with an empty proxies list if no master CLI is configured. This results in infinite loop since last patch: 3b68b602 ("BUG/MAJOR: log-forward: Fix log-forward proxies not fully initialized") This patch avoid to loop again on log-forward proxies list if empty. This patch should be backported until v2.3
This commit is contained in:
parent
f1cfd9bc97
commit
8032a276ce
@ -3906,6 +3906,8 @@ out_uri_auth_compat:
|
|||||||
*/
|
*/
|
||||||
if (init_proxies_list == proxies_list) {
|
if (init_proxies_list == proxies_list) {
|
||||||
init_proxies_list = cfg_log_forward;
|
init_proxies_list = cfg_log_forward;
|
||||||
|
/* check if list is not null to avoid infinite loop */
|
||||||
|
if (init_proxies_list)
|
||||||
goto init_proxies_list_stage1;
|
goto init_proxies_list_stage1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4058,6 +4060,8 @@ init_proxies_list_stage2:
|
|||||||
*/
|
*/
|
||||||
if (init_proxies_list == proxies_list) {
|
if (init_proxies_list == proxies_list) {
|
||||||
init_proxies_list = cfg_log_forward;
|
init_proxies_list = cfg_log_forward;
|
||||||
|
/* check if list is not null to avoid infinite loop */
|
||||||
|
if (init_proxies_list)
|
||||||
goto init_proxies_list_stage2;
|
goto init_proxies_list_stage2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user