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:
Willy Tarreau 2021-08-20 10:23:12 +02:00
parent d3dbfd9085
commit 0e72e40f7e

View File

@ -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;