Skip to content

Commit

Permalink
lib-http: client: Merge socket buffer size settings with settings fro…
Browse files Browse the repository at this point in the history
…m shared context.

While using the default global context, per-client socket buffer size settings were ignored.
  • Loading branch information
stephanbosch authored and villesavolainen committed Mar 12, 2018
1 parent a267451 commit f43229f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib-http/http-client.c
Expand Up @@ -198,6 +198,10 @@ http_client_init_shared(struct http_client_context *cctx,
client->set.connect_timeout_msecs = set->connect_timeout_msecs;
if (set->soft_connect_timeout_msecs > 0)
client->set.soft_connect_timeout_msecs = set->soft_connect_timeout_msecs;
if (set->socket_send_buffer_size > 0)
client->set.socket_send_buffer_size = set->socket_send_buffer_size;
if (set->socket_recv_buffer_size > 0)
client->set.socket_recv_buffer_size = set->socket_recv_buffer_size;
if (set->max_auto_retry_delay > 0)
client->set.max_auto_retry_delay = set->max_auto_retry_delay;
client->set.debug = client->set.debug || set->debug;
Expand Down

0 comments on commit f43229f

Please sign in to comment.