From de583a6d0d2a1e2e101d9e10916e72edb23d21b8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 18 Sep 2017 03:41:44 +0300 Subject: Set minimal allowed speed in curl is 1 bytes per minute. If speed slower, will be disconnect. Probably it will fix issue with routing or mtu stuck connections. --- src/net/download.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/net/download.cpp b/src/net/download.cpp index 45f2989c0..d36c59032 100644 --- a/src/net/download.cpp +++ b/src/net/download.cpp @@ -583,6 +583,9 @@ void Download::secureCurl(CURL *const curl A_UNUSED) #if LIBCURL_VERSION_NUM >= 0x070a08 curl_easy_setopt(curl, CURLOPT_MAXFILESIZE, 536870912); #endif // LIBCURL_VERSION_NUM >= 0x070a08 + + curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, 1L); + curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, 60L); } #if LIBCURL_VERSION_NUM >= 0x071507 -- cgit v1.2.3-60-g2f50