From 077bf4eddd515c9a0ae82ce928732d66eb3c413e Mon Sep 17 00:00:00 2001 From: Steveice10 Date: Tue, 1 Jan 2019 09:54:15 -0800 Subject: [PATCH] Change cURL timeout to connection timeout. --- source/core/http.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/core/http.c b/source/core/http.c index 7456ae7..00514a7 100644 --- a/source/core/http.c +++ b/source/core/http.c @@ -366,7 +366,7 @@ Result http_download_callback(const char* url, u32 bufferSize, u64* contentLengt curl_easy_setopt(curl, CURLOPT_URL, url); curl_easy_setopt(curl, CURLOPT_USERAGENT, HTTP_USER_AGENT); curl_easy_setopt(curl, CURLOPT_BUFFERSIZE, bufferSize); - curl_easy_setopt(curl, CURLOPT_TIMEOUT, HTTP_TIMEOUT_SEC); + curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, HTTP_TIMEOUT_SEC); curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1); curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, http_curl_write_callback);