mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-17 17:04:35 +00:00
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.
This commit is contained in:
parent
18340300da
commit
5b4b6ca823
@ -1045,5 +1045,5 @@ err:
|
||||
|
||||
/* initialize the proxy and servers for the HTTP client */
|
||||
|
||||
INITCALL0(STG_REGISTER, httpclient_init);
|
||||
INITCALL0(STG_INIT, httpclient_init);
|
||||
REGISTER_CONFIG_POSTPARSER("httpclient", httpclient_cfg_postparser);
|
||||
|
Loading…
Reference in New Issue
Block a user