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.

(cherry picked from commit e9b774f4b372d05c1a839cc6c5dcf8eb72046b7b)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit b05bfc27b3025fe7b563246c3c0d97bf6acca9e1)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit be83153efa16691cc7578531950324f3dc6d7abc)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 0e9d9409204ee8547f88cd321d17509b6e9c7dea)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 6cb85f753b6ddcc309e7ad574db85baa6172496f)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed