From 8ffb648628058874b4fc8ffe4a41173be95fca33 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sat, 6 Nov 2021 06:53:29 -0400 Subject: [PATCH] Disable verbose cURL. Decrease cURL timeout to 10 seconds. --- src/network.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/network.cpp b/src/network.cpp index cda57aea..e55c62ac 100644 --- a/src/network.cpp +++ b/src/network.cpp @@ -22,10 +22,10 @@ static CURL* createCurl() { CURL* curl = curl_easy_init(); assert(curl); - curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L); + // 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); + curl_easy_setopt(curl, CURLOPT_TIMEOUT, 10); // 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.