set cURL timeout to 3s
hey..... versions.json is currently 374 bytes, so it's enough for you, right?
This commit is contained in:
parent
916c670e4b
commit
1d769cec36
@ -86,6 +86,7 @@ _Bool checkVersion()
|
|||||||
//GET versions.json
|
//GET versions.json
|
||||||
curl_easy_setopt(curl, CURLOPT_URL, VERSIONS_URL);
|
curl_easy_setopt(curl, CURLOPT_URL, VERSIONS_URL);
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEDATA, fileBuffer);
|
curl_easy_setopt(curl, CURLOPT_WRITEDATA, fileBuffer);
|
||||||
|
curl_easy_setopt(curl, CURLOPT_TIMEOUT, 3);
|
||||||
|
|
||||||
//DOWNLOAD versions.json
|
//DOWNLOAD versions.json
|
||||||
curl_easy_perform(curl);
|
curl_easy_perform(curl);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user