]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: resolvers: Only renew TTL for SRV records with an additional record
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 23 Feb 2021 11:22:29 +0000 (12:22 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 24 Feb 2021 20:58:45 +0000 (21:58 +0100)
commita331a1e8eb2ad4750711a477ca3e22d940495faf
tree2b93f6147dfbe4ecda9e51009dee31b16cbbaef2
parent9c246a4b6ce3fa0e70399e0158866d41b8662a7f
BUG/MINOR: resolvers: Only renew TTL for SRV records with an additional record

If no additional record is associated to a SRV record, its TTL must not be
renewed. Otherwise the entry never expires. Thus once announced a first
time, the entry remains blocked on the same IP/port except if a new announce
replaces the old one.

Now, the TTL is updated if a SRV record is received while a matching
existing one is found with an additional record or when an new additional
record is assigned to an existing SRV record.

This patch should be backported as far as 2.2.
src/resolvers.c