From: Stephan Bosch Date: Thu, 28 Dec 2017 23:16:30 +0000 (+0100) Subject: lib-http: client: Merge max_idle_time_msecs setting with setting from shared context. X-Git-Tag: 2.3.1~179 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a267451237ba3b14d5fc54efa36ca325236edb3b;p=thirdparty%2Fdovecot%2Fcore.git lib-http: client: Merge max_idle_time_msecs setting with setting from shared context. While using the default global context, per-client max_idle_time_msecs setting was ignored. --- diff --git a/src/lib-http/http-client.c b/src/lib-http/http-client.c index a21e1d4e7e..2137e5e498 100644 --- a/src/lib-http/http-client.c +++ b/src/lib-http/http-client.c @@ -162,6 +162,8 @@ http_client_init_shared(struct http_client_context *cctx, p_strdup(pool, set->proxy_url->password); } + if (set->max_idle_time_msecs > 0) + client->set.max_idle_time_msecs = set->max_idle_time_msecs; if (set->max_parallel_connections > 0) client->set.max_parallel_connections = set->max_parallel_connections; if (set->max_pipelined_requests > 0)