mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 13:51:26 +02:00
BUG/MINOR: http_client: make sure to preset the proxy's default settings
Proxies must call proxy_preset_defaults() to initialize their settings that are usually learned from defaults sections (e.g. connection retries, pool purge delay etc). At the moment there was likely no impact, but not doing so could cause trouble soon when using the client more extensively or when new defaults are introduced and failed to be initialized. No backport is needed.
This commit is contained in:
parent
d3dbfd9085
commit
0e72e40f7e
@ -657,6 +657,8 @@ static int httpclient_init()
|
||||
goto err;
|
||||
}
|
||||
|
||||
proxy_preset_defaults(httpclient_proxy);
|
||||
|
||||
httpclient_proxy->options2 |= PR_O2_INDEPSTR;
|
||||
httpclient_proxy->mode = PR_MODE_HTTP;
|
||||
httpclient_proxy->maxconn = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user