BUG/MINOR: resolvers: Reset server IP when no ip is found in the response
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 24 Jun 2021 13:26:03 +0000 (15:26 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 6 Jul 2021 16:14:20 +0000 (18:14 +0200)
commitca12ca7bb7fc1958ee725fb8c53c1fbafdeef515
treebda19fbe6b17bc3606186eac5293aef7e24b114f
parentb0865b5366e9cda605bdbf17320a238b864bb159
BUG/MINOR: resolvers: Reset server IP when no ip is found in the response

For A/AAAA resolution, if no ip is found for a server in the response, the
server is set to RMAINT status. However, its address must also be
reset. Otherwise, it is still reported by the cli on "show servers state"
commands. This may be confusing.

This patch may be backported as far as 2.0.

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