Skip to content

Commit

Permalink
enable HTTP multiplexing (for HTTP/2)
Browse files Browse the repository at this point in the history
  • Loading branch information
AiraYumi committed Nov 16, 2024
1 parent 8ab247f commit eb3eff9
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 @@ -492,7 +492,7 @@ void HttpLibcurl::policyUpdated(unsigned int policy_class)
// We'll try to do pipelining on this multihandle
check_curl_multi_setopt(multi_handle,
CURLMOPT_PIPELINING,
1L);
CURLPIPE_HTTP1);
check_curl_multi_setopt(multi_handle,
CURLMOPT_MAX_PIPELINE_LENGTH,
long(options.mPipelining));
Expand All @@ -507,7 +507,7 @@ void HttpLibcurl::policyUpdated(unsigned int policy_class)
{
check_curl_multi_setopt(multi_handle,
CURLMOPT_PIPELINING,
0L);
CURLPIPE_MULTIPLEX);
check_curl_multi_setopt(multi_handle,
CURLMOPT_MAX_HOST_CONNECTIONS,
0L);
Expand Down

0 comments on commit eb3eff9

Please sign in to comment.