From 9536a8ec64b40ef01fb892d7c0d0d138dff416e3 Mon Sep 17 00:00:00 2001 From: smallmodel <15067410+smallmodel@users.noreply.github.com> Date: Thu, 13 Mar 2025 22:41:01 +0100 Subject: [PATCH] Specify a small timeout for each request --- code/sys/sys_update_checker.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/code/sys/sys_update_checker.cpp b/code/sys/sys_update_checker.cpp index c7915503..a67b4620 100644 --- a/code/sys/sys_update_checker.cpp +++ b/code/sys/sys_update_checker.cpp @@ -333,6 +333,7 @@ void UpdateCheckerThread::DoRequest() curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, &WriteCallback); curl_easy_setopt(handle, CURLOPT_WRITEDATA, &responseString); + curl_easy_setopt(handle, CURLOPT_TIMEOUT, 15); result = curl_easy_perform(handle); if (result != CURLE_OK) {