[Curl] Enable HTTP/2 Multiplexing
authordon.olmstead@sony.com <don.olmstead@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 May 2018 00:04:59 +0000 (00:04 +0000)
committerdon.olmstead@sony.com <don.olmstead@sony.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 18 May 2018 00:04:59 +0000 (00:04 +0000)
https://bugs.webkit.org/show_bug.cgi?id=185746

Reviewed by Youenn Fablet.

Covered by existing tests.

* platform/network/curl/CurlContext.cpp:
(WebCore::CurlMultiHandle::CurlMultiHandle):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231932 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/network/curl/CurlContext.cpp

index 5f000e4..37d8481 100644 (file)
@@ -1,3 +1,15 @@
+2018-05-17  Don Olmstead  <don.olmstead@sony.com>
+
+        [Curl] Enable HTTP/2 Multiplexing
+        https://bugs.webkit.org/show_bug.cgi?id=185746
+
+        Reviewed by Youenn Fablet.
+
+        Covered by existing tests.
+
+        * platform/network/curl/CurlContext.cpp:
+        (WebCore::CurlMultiHandle::CurlMultiHandle):
+
 2018-05-17  Jeremy Jones  <jeremyj@apple.com>
 
         Remove unnecessary exit fullscreen call on application resume
index ef13297..1639496 100644 (file)
@@ -197,6 +197,9 @@ Lock* CurlShareHandle::mutexFor(curl_lock_data data)
 CurlMultiHandle::CurlMultiHandle()
 {
     m_multiHandle = curl_multi_init();
+
+    if (CurlContext::singleton().isHttp2Enabled())
+        curl_multi_setopt(m_multiHandle, CURLMOPT_PIPELINING, CURLPIPE_MULTIPLEX);
 }
 
 CurlMultiHandle::~CurlMultiHandle()