Specify a small timeout for each request

This commit is contained in:
smallmodel 2025-03-13 22:41:01 +01:00
parent 06a12246f5
commit 9536a8ec64
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -333,6 +333,7 @@ void UpdateCheckerThread::DoRequest()
curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, &WriteCallback); curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, &WriteCallback);
curl_easy_setopt(handle, CURLOPT_WRITEDATA, &responseString); curl_easy_setopt(handle, CURLOPT_WRITEDATA, &responseString);
curl_easy_setopt(handle, CURLOPT_TIMEOUT, 15);
result = curl_easy_perform(handle); result = curl_easy_perform(handle);
if (result != CURLE_OK) { if (result != CURLE_OK) {