BUG/MINOR: backend: properly handle redispatch 0
authorWilly Tarreau <w@1wt.eu>
Tue, 2 Apr 2024 13:15:32 +0000 (15:15 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 2 Apr 2024 13:19:18 +0000 (15:19 +0200)
commite9b774f4b372d05c1a839cc6c5dcf8eb72046b7b
treeca2f6384e13b02706a26666ed1bfa114106f4c67
parent4c361a9d8aecb23e385fde392161012a7c5b43bd
BUG/MINOR: backend: properly handle redispatch 0

According to the documentation, "option redispatch 0" is expected to
disable redispatch just like "no option redispatch", but due to the
fact that it keeps PR_O_REDISP set, it doesn't actually work. Let's
make sure value 0 is properly handled and drops PR_O_REDISP. This can
be backported to all versions since it seems it has been broken since
its introduction in 1.6 with commit 726ab7145c ("MEDIUM: backend: Allow
redispatch on retry intervals").

As a workaround, "no option redispatch" does work though.
src/cfgparse-listen.c