From e53885a8a87dea7b560acba4f60e3c72fabd5061 Mon Sep 17 00:00:00 2001 From: Tixx <83774803+WiserTixx@users.noreply.github.com> Date: Sat, 11 Jan 2025 21:45:06 +0100 Subject: [PATCH] Raise http get timeout to 2 minutes --- src/Network/Http.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Network/Http.cpp b/src/Network/Http.cpp index c3932fd..2804dd7 100644 --- a/src/Network/Http.cpp +++ b/src/Network/Http.cpp @@ -76,7 +76,7 @@ std::string HTTP::Get(const std::string& IP) { curl_easy_setopt(curl, CURLOPT_URL, IP.c_str()); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, CurlWriteCallback); curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void*)&Ret); - curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 10); // seconds + curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 120); // seconds curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L); res = curl_easy_perform(curl); if (res != CURLE_OK) {