Browse Source

Disable verbose cURL. Decrease cURL timeout to 10 seconds.

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

+ 2
- 2
src/network.cpp View File

@@ -22,10 +22,10 @@ static CURL* createCurl() {
CURL* curl = curl_easy_init(); CURL* curl = curl_easy_init();
assert(curl); assert(curl);


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


// If curl can't resolve a DNS entry, it sends a signal to interrupt the process. // If curl can't resolve a DNS entry, it sends a signal to interrupt the process.
// However, since we use curl on non-main thread, this crashes the application. // However, since we use curl on non-main thread, this crashes the application.


Loading…
Cancel
Save