]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: resolvers: add a ref on server to the used A/AAAA answer item
authorEmeric Brun <ebrun@haproxy.com>
Fri, 11 Jun 2021 08:08:05 +0000 (10:08 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 11 Jun 2021 14:16:16 +0000 (16:16 +0200)
commitbd78c912fd73b8506a39c53b6f0b00330f998aca
tree2c23cbcfd1d333a7725af7ccc93a26530155a24c
parent12ca658dbe5bc3a3f47de06b2c19d5f0ee08941e
MEDIUM: resolvers: add a ref on server to the used A/AAAA answer item

This patch adds a head list into answer items on servers which use
this record to set their IPs. It makes lookup on duplicated ip faster and
allow to check immediatly if an item is still valid renewing the IP.

This results in better performances on A/AAAA resolutions.

This is an optimization but it could avoid to trigger the haproxy's
internal wathdog in some circumstances. And for this reason
it should be backported as far we can (2.0 ?)
include/haproxy/resolvers-t.h
include/haproxy/resolvers.h
include/haproxy/server-t.h
src/resolvers.c
src/server.c