BUG/MINOR: resolvers: Consider server to have no IP on DNS resolution error
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 10 Mar 2021 14:39:16 +0000 (15:39 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 18 Mar 2021 08:23:21 +0000 (09:23 +0100)
commit4a4b2ce10c0c789b7203f3e884332d8fea90c410
treef93466fb582b752ef5fca47bf5c207ac14233e8f
parent1f5bf1334615c97020c9a5b0425dfb68e14680c1
BUG/MINOR: resolvers: Consider server to have no IP on DNS resolution error

When an error is received for a DNS resolution, for instance a NXDOMAIN
error, the server must be considered to have no address when its status is
updated, not the opposite.

Concretly, because this parameter is not used on error path in
snr_update_srv_status(), there is no impact.

This patch must be backported as far as 1.8.

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