]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: httpclient: initialize the client in stage INIT not REGISTER
authorWilly Tarreau <w@1wt.eu>
Fri, 18 Feb 2022 15:23:14 +0000 (16:23 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Feb 2022 16:11:33 +0000 (17:11 +0100)
commit5b4b6ca823241a4da8d4e32bf9986ae33f879879
tree4b530cbf43a7061700f10dc0a63b5d047b6c33a2
parent18340300daf8f1b73d9a6cade0511f6ae23ee7c5
CLEANUP: httpclient: initialize the client in stage INIT not REGISTER

REGISTER is meant to only assemble static lists, not to initialize
code that may depend on some elements possibly initialized at this
level. For example the init code currently looks up transport protocols
such as XPRT_RAW and XPRT_SSL which ought to be themselves registered
from at REGISTER stage, and which currently work only because they're
still registered directly from a constructor. INIT is perfectly suited
for this level.
src/http_client.c