]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: resolvers: add a ref between servers and srv request or used SRV record
authorEmeric Brun <ebrun@haproxy.com>
Fri, 11 Jun 2021 08:48:45 +0000 (10:48 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 11 Jun 2021 14:16:16 +0000 (16:16 +0200)
commit3406766d57fc11478d54a6fa2d048cbfe4524a4e
tree9f7ed71db23eadb32e0ce224a8af36ed32bc8520
parentbd78c912fd73b8506a39c53b6f0b00330f998aca
MEDIUM: resolvers: add a ref between servers and srv request or used SRV record

This patch add a ref into servers to register them onto the
record answer item used to set their hostnames.

It also adds a head list into 'srvrq' to register servers free
to be affected to a SRV record.

A head of a tree is also added to srvrq to put servers which
present a hotname in server state file. To re-link them fastly
to the matching record as soon an item present the same name.

This results in better performances on SRV record response
parsing.

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
src/server_state.c