]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: checks: Don't use a static tcp rule list head
authorGaetan Rivet <grive@u256.net>
Fri, 7 Feb 2020 14:37:17 +0000 (15:37 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 27 Apr 2020 07:39:37 +0000 (09:39 +0200)
commit04578dbf379aa53abfc79cd08b73ba6b98d37817
treee7bc7ce34f45876bffd1393e2883b41134b204a0
parent9dcb09fc9813a79029a335362378e4f728cbc103
MINOR: checks: Don't use a static tcp rule list head

To allow reusing these blocks without consuming more memory, their list
should be static and share-able accross uses. The head of the list will
be shared as well.

It is thus necessary to extract the head of the rule list from the proxy
itself. Transform it into a pointer instead, that can be easily set to
an external dynamically allocated head.
include/types/proxy.h
src/cfgparse-listen.c
src/cfgparse.c
src/checks.c
src/proxy.c
src/server.c