From d5a295a5ef8338a6d292bb3c60bddcfb8baf17bc Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 18 Sep 2017 03:52:02 +0300 Subject: Use fast open in curl. --- src/net/download.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/net/download.cpp') diff --git a/src/net/download.cpp b/src/net/download.cpp index d36c59032..9068f15ca 100644 --- a/src/net/download.cpp +++ b/src/net/download.cpp @@ -584,6 +584,10 @@ void Download::secureCurl(CURL *const curl A_UNUSED) curl_easy_setopt(curl, CURLOPT_MAXFILESIZE, 536870912); #endif // LIBCURL_VERSION_NUM >= 0x070a08 +#if LIBCURL_VERSION_NUM >= 0x073100 + curl_easy_setopt(curl, CURLOPT_TCP_FASTOPEN, 1L); +#endif // LIBCURL_VERSION_NUM >= 0x073100 + curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, 1L); curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, 60L); } -- cgit v1.2.3-60-g2f50