]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: backend: Fallback on RR algo if balance on source is impossible
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 22 Jul 2022 15:07:32 +0000 (17:07 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 22 Jul 2022 15:07:34 +0000 (17:07 +0200)
commit38c53944cb3306e36f6d60764c15adb206aedfb3
tree72cd41198ba6623d068d97cf6cdad9494d514af1
parentca6799297990f0f17d81a5e0fd30d116b6c4455f
BUG/MINOR: backend: Fallback on RR algo if balance on source is impossible

If the loadbalancing is performed on the source IP address, an internal
error was returned on error. So for an applet on the client side (for
instance an SPOE applet) or for a client connected to a unix socket, an
internal error is returned.

However, when other LB algos fail, a fallback on round-robin is
performed. There is no reson to not do the same here.

This patch should fix the issue #1797. It must be backported to all
supported versions.
src/backend.c