]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: split proxy allocation functions
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 23 Mar 2021 16:27:05 +0000 (17:27 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 26 Mar 2021 14:28:33 +0000 (15:28 +0100)
commit476b9ad97a23d31905bdf63749a5b5ff5626426a
treee218dc6229e674b9f6827f610330dae289e3d420
parent68fd7e43d35ddcd87c5e1545dd40476222f53d4c
REORG: split proxy allocation functions

Create a new function parse_new_proxy specifically designed to allocate
a new proxy from the configuration file and copy settings from the
default proxy.

The function alloc_new_proxy is reduced to a minimal allocation. It is
used for default proxy allocation and could also be used for internal
proxies such as the lua Socket proxy.
include/haproxy/proxy.h
src/cfgparse-listen.c
src/proxy.c