BUG/MINOR; resolvers: Ignore DNS resolution for expired SRV item
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 10 Mar 2021 14:07:27 +0000 (15:07 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 16 Mar 2021 08:25:07 +0000 (09:25 +0100)
commitdb001949af4a2199cbc9bf1ed70152a7dbc58035
tree2da8fc040a9072760ad4bb94cfea0352f811f667
parent99348c3fdaa16980757b2b2afc00ec80c059b13d
BUG/MINOR; resolvers: Ignore DNS resolution for expired SRV item

If no ADD item is found for a SRV item in a SRV response, a DNS resolution
is triggered. When it succeeds, we must be sure the SRV item is still
alive. Otherwise the DNS resolution must be ignored.

This patch depends on the commit "MINOR: resolvers: Move last_seen time of
an ADD into its corresponding SRV item". Both must be backported as far as
2.2.

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