BUG/MINOR: only auto-prefer last server if lb-alg is non-deterministic
authorLukas Tribus <lukas@ltri.eu>
Sat, 27 Oct 2018 18:07:40 +0000 (20:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 27 Oct 2018 20:10:32 +0000 (22:10 +0200)
commit80512b186fd7f4ef3bc7d9c92b281c549d72aa8a
treef315a2a2dc3d520518c167bcfdfdb598a3b422e6
parentfd9b68c48ecdba5e7971899f4eec315c8e3a3cfe
BUG/MINOR: only auto-prefer last server if lb-alg is non-deterministic

While "option prefer-last-server" only applies to non-deterministic load
balancing algorithms, 401/407 responses actually caused haproxy to prefer
the last server unconditionally.

As this breaks deterministic load balancing algorithms like uri, this
patch applies the same condition here.

Should be backported to 1.8 (together with "BUG/MINOR: only mark
connections private if NTLM is detected").
doc/configuration.txt
src/backend.c
src/proto_http.c