From 5ad49233198fb1a0e06ce086c0995619aee9465c Mon Sep 17 00:00:00 2001 From: blankie Date: Sat, 2 Dec 2023 14:17:52 +1100 Subject: [PATCH] Triple HTTP request timeout to cope with slow instances --- client.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.cpp b/client.cpp index 8f322d3..86773d8 100644 --- a/client.cpp +++ b/client.cpp @@ -235,7 +235,7 @@ CURL* MastodonClient::_get_easy() { } try { - setopt(curl, CURLOPT_TIMEOUT_MS, 10000L); + setopt(curl, CURLOPT_TIMEOUT_MS, 30000L); #if CURL_AT_LEAST_VERSION(7, 85, 0) setopt(curl, CURLOPT_PROTOCOLS_STR, "https"); #else