summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Belt <andrewpbelt@gmail.com>2022-09-21 09:36:05 -0400
committerAndrew Belt <andrewpbelt@gmail.com>2022-09-21 09:36:05 -0400
commit77ee02a051813a2e9cfa748252ea520513d20433 (patch)
tree276580883cff18b1a539a8f2895eae9669dbccd6
parentb2502f0ea0e49debca38b41d9178e96b35b2301d (diff)
Decrease network connection timeout to 30 seconds.
-rw-r--r--src/network.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/network.cpp b/src/network.cpp
index 68876200..9da83245 100644
--- a/src/network.cpp
+++ b/src/network.cpp
@@ -26,8 +26,9 @@ static CURL* createCurl() {
std::string userAgent = APP_NAME + " " + APP_EDITION_NAME + "/" + APP_VERSION;
curl_easy_setopt(curl, CURLOPT_USERAGENT, userAgent.c_str());
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, true);
- // 65 second timeout for connections, just a bit over the typical HTTP default.
- curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 65);
+ // Timeout to wait on initial HTTP connection.
+ // This is lower than the typical HTTP timeout of 60 seconds to avoid DAWs from aborting plugin scans.
+ curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 30);
// 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.