Title: [283136] trunk/Source/WebCore
Revision
283136
Author
[email protected]
Date
2021-09-27 14:28:19 -0700 (Mon, 27 Sep 2021)

Log Message

[Curl] Set CURL_LOCK_DATA_SSL_SESSION option to reduce SSL/TLS handshake time
https://bugs.webkit.org/show_bug.cgi?id=230818

Reviewed by Fujii Hironori.

Set CURL_LOCK_DATA_SSL_SESSION option to reuse Session ID.
It reduces SSL/TLS handshake time.

Covered by existing tests.

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

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (283135 => 283136)


--- trunk/Source/WebCore/ChangeLog	2021-09-27 21:27:00 UTC (rev 283135)
+++ trunk/Source/WebCore/ChangeLog	2021-09-27 21:28:19 UTC (rev 283136)
@@ -1,3 +1,18 @@
+2021-09-27  Takashi Komori  <[email protected]>
+
+        [Curl] Set CURL_LOCK_DATA_SSL_SESSION option to reduce SSL/TLS handshake time
+        https://bugs.webkit.org/show_bug.cgi?id=230818
+
+        Reviewed by Fujii Hironori.
+
+        Set CURL_LOCK_DATA_SSL_SESSION option to reuse Session ID.
+        It reduces SSL/TLS handshake time.
+
+        Covered by existing tests.
+
+        * platform/network/curl/CurlContext.cpp:
+        (WebCore::CurlShareHandle::CurlShareHandle):
+
 2021-09-27  Tim Nguyen  <[email protected]>
 
         Rename Style::queuePostResolutionCallback to Style::deprecatedQueuePostResolutionCallback

Modified: trunk/Source/WebCore/platform/network/curl/CurlContext.cpp (283135 => 283136)


--- trunk/Source/WebCore/platform/network/curl/CurlContext.cpp	2021-09-27 21:27:00 UTC (rev 283135)
+++ trunk/Source/WebCore/platform/network/curl/CurlContext.cpp	2021-09-27 21:28:19 UTC (rev 283136)
@@ -171,6 +171,7 @@
     m_shareHandle = curl_share_init();
     curl_share_setopt(m_shareHandle, CURLSHOPT_SHARE, CURL_LOCK_DATA_COOKIE);
     curl_share_setopt(m_shareHandle, CURLSHOPT_SHARE, CURL_LOCK_DATA_DNS);
+    curl_share_setopt(m_shareHandle, CURLSHOPT_SHARE, CURL_LOCK_DATA_SSL_SESSION);
     curl_share_setopt(m_shareHandle, CURLSHOPT_LOCKFUNC, lockCallback);
     curl_share_setopt(m_shareHandle, CURLSHOPT_UNLOCKFUNC, unlockCallback);
 }
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to