Skip to content

Commit

Permalink
Enable HTTP Multiplex if available.
Browse files Browse the repository at this point in the history
  • Loading branch information
AiraYumi committed Nov 16, 2024
1 parent 975028b commit bd9595f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions indra/llcorehttp/_httplibcurl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ void HttpLibcurl::policyUpdated(unsigned int policy_class)
LL_INFOS("HttpLibcurl") << "HTTP Pipelining Enable." << LL_ENDL;
check_curl_multi_setopt(multi_handle,
CURLMOPT_PIPELINING,
1L);
CURLPIPE_MULTIPLEX | CURLPIPE_HTTP1);
check_curl_multi_setopt(multi_handle,
CURLMOPT_MAX_PIPELINE_LENGTH,
long(options.mPipelining));
Expand All @@ -509,7 +509,7 @@ void HttpLibcurl::policyUpdated(unsigned int policy_class)
LL_INFOS("HttpLibcurl") << "HTTP Pipelining Disable." << LL_ENDL;
check_curl_multi_setopt(multi_handle,
CURLMOPT_PIPELINING,
0L);
CURLPIPE_NOTHING);
check_curl_multi_setopt(multi_handle,
CURLMOPT_MAX_HOST_CONNECTIONS,
0L);
Expand Down

0 comments on commit bd9595f

Please sign in to comment.