From 0e72e40f7e25e5c3a6e9e64d5715776cfdec7fd3 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Fri, 20 Aug 2021 10:23:12 +0200 Subject: [PATCH] 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. --- src/http_client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/http_client.c b/src/http_client.c index b949e09d2..6142c4857 100644 --- a/src/http_client.c +++ b/src/http_client.c @@ -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;