MINOR: dns: dns_requester structures are now in a memory pool
authorBaptiste Assmann <bedis9@gmail.com>
Mon, 21 Jan 2019 07:18:09 +0000 (08:18 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 23 Apr 2019 09:33:48 +0000 (11:33 +0200)
commitdfd35fd71ad9190a3d1f3c8358f335053b9834d8
tree4ccef303653ca4f834376b0b4de17da760419438
parentcd9b9bd3e47cb2814eaab6c07d1facf222f013a9
MINOR: dns: dns_requester structures are now in a memory pool

dns_requester structure can be allocated at run time when servers get
associated to DNS resolution (this happens when SRV records are used in
conjunction with service discovery).
Well, this memory allocation is safer if managed in an HAProxy pool,
furthermore with upcoming HTTP action which can perform DNS resolution
at runtime.

This patch moves the memory management of the dns_requester structure
into its own pool.
include/types/dns.h
src/dns.c