Skip to content

Commit c21b917

Browse files
committed
Always try to reuse connection
CURLMOPT_PIPELINING is a bitfield, no need for condition
1 parent 89355a3 commit c21b917

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/https_client.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -605,10 +605,7 @@ void https_client_init(https_client_t *c, options_t *opt,
605605
c->opt = opt;
606606
c->stat = stat;
607607

608-
ASSERT_CURL_MULTI_SETOPT(c->curlm, CURLMOPT_PIPELINING,
609-
c->opt->use_http_1_1 ?
610-
CURLPIPE_HTTP1 :
611-
CURLPIPE_MULTIPLEX);
608+
ASSERT_CURL_MULTI_SETOPT(c->curlm, CURLMOPT_PIPELINING, CURLPIPE_HTTP1 | CURLPIPE_MULTIPLEX);
612609
ASSERT_CURL_MULTI_SETOPT(c->curlm, CURLMOPT_MAX_TOTAL_CONNECTIONS, MAX_TOTAL_CONNECTIONS);
613610
ASSERT_CURL_MULTI_SETOPT(c->curlm, CURLMOPT_SOCKETDATA, c);
614611
ASSERT_CURL_MULTI_SETOPT(c->curlm, CURLMOPT_SOCKETFUNCTION, multi_sock_cb);

0 commit comments

Comments
 (0)