Skip to content

Commit

Permalink
lib-http: client: Merge max_idle_time_msecs setting with setting from…
Browse files Browse the repository at this point in the history
… shared context.

While using the default global context, per-client max_idle_time_msecs setting was ignored.
  • Loading branch information
stephanbosch authored and villesavolainen committed Mar 12, 2018
1 parent ff5d021 commit a267451
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib-http/http-client.c
Expand Up @@ -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)
Expand Down

0 comments on commit a267451

Please sign in to comment.