From 4851b09d5b09087e13da3446302896ead3135b1a Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Sun, 8 Aug 2021 04:16:08 -0400 Subject: [PATCH] Add 15 second timeout to network:: requests. --- src/network.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/network.cpp b/src/network.cpp index 7a39a3de..a50d7b81 100644 --- a/src/network.cpp +++ b/src/network.cpp @@ -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());