1
0
mirror of https://github.com/blupi-games/planetblupi synced 2024-12-30 10:15:36 +01:00

Use small timeouts with cURL

This commit is contained in:
Mathieu Schroeter 2017-11-01 06:58:04 +01:00
parent 4b8623f408
commit 61bd9261bf

View File

@ -510,6 +510,8 @@ CheckForUpdates ()
curl_easy_setopt (curl, CURLOPT_NOSIGNAL, 1);
curl_easy_setopt (curl, CURLOPT_FAILONERROR, 1);
curl_easy_setopt (curl, CURLOPT_FOLLOWLOCATION, 1);
curl_easy_setopt (curl, CURLOPT_TIMEOUT, 20);
curl_easy_setopt (curl, CURLOPT_CONNECTTIMEOUT, 5);
curl_easy_setopt (curl, CURLOPT_WRITEFUNCTION, updateCallback);