BUG/MINOR: resolvers: Unlink DNS resolution to set RMAINT on SRV resolution
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 10 Mar 2021 20:33:21 +0000 (21:33 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 16 Mar 2021 08:09:03 +0000 (09:09 +0100)
commit833937da99caf3639e67a14409095a402ea2f0b2
treeb9cae873b75f6ee0ce8cf2f54baf49e9f1fb59e6
parent7c9201e08f03367db74f2fca795cb1eb35d14554
BUG/MINOR: resolvers: Unlink DNS resolution to set RMAINT on SRV resolution

When a server is set in RMAINT becaues of a SRV resolution failure, the
server DNS resolution, if any, must be unlink first. It is mandatory to
handle the change in the context of a SRV resolution.

This patch must be backported as far as 2.2.

(cherry picked from commit bca680ba90787fc57b9711e268f6fb0c74e7e49c)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/dns.c
src/server.c