mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-11 01:41:49 -04:00
[BUG] hot reconfiguration failed because of a wrong error check
The error check in return of start_proxies checked for exact ERR_RETRYABLE but did not consider the return as a bit field. The function returned both ERR_RETRYABLE and ERR_ALERT, hence the problem.
This commit is contained in:
parent
7c7b876bdb
commit
fbffe58f46
1 changed files with 2 additions and 1 deletions
|
|
@ -817,7 +817,8 @@ int main(int argc, char **argv)
|
|||
while (retry >= 0) {
|
||||
struct timeval w;
|
||||
err = start_proxies(retry == 0 || nb_oldpids == 0);
|
||||
if (err != ERR_RETRYABLE)
|
||||
/* exit the loop on no error or fatal error */
|
||||
if ((err & (ERR_RETRYABLE|ERR_FATAL)) != ERR_RETRYABLE)
|
||||
break;
|
||||
if (nb_oldpids == 0)
|
||||
break;
|
||||
|
|
|
|||
Loading…
Reference in a new issue