mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Specify a small timeout for each request
This commit is contained in:
parent
06a12246f5
commit
9536a8ec64
1 changed files with 1 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue