Browse Source

Add 15 second timeout to network:: requests.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
4851b09d5b
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/network.cpp

+ 2
- 0
src/network.cpp View File

@@ -23,6 +23,8 @@ static CURL* createCurl() {

// curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, true);
// 15 second timeout for requests
curl_easy_setopt(curl, CURLOPT_TIMEOUT, 15);

std::string caPath = asset::system("cacert.pem");
curl_easy_setopt(curl, CURLOPT_CAINFO, caPath.c_str());


Loading…
Cancel
Save