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>
Fri, 12 Mar 2021 16:41:28 +0000 (17:41 +0100)
commit49531e8471a1c1ae9e1c7a6c1aeeb00713024beb
tree153cef6d85f35236407ccf9bb8adda2c7f20216c
parent6a8d11dc8051f4fc40c9ab1266cd58367ea1ca19
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.
src/server.c