Triple HTTP request timeout to cope with slow instances

This commit is contained in:
blankie 2023-12-02 14:17:52 +11:00
parent 1a02dc179c
commit 5ad4923319
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ CURL* MastodonClient::_get_easy() {
} }
try { try {
setopt(curl, CURLOPT_TIMEOUT_MS, 10000L); setopt(curl, CURLOPT_TIMEOUT_MS, 30000L);
#if CURL_AT_LEAST_VERSION(7, 85, 0) #if CURL_AT_LEAST_VERSION(7, 85, 0)
setopt(curl, CURLOPT_PROTOCOLS_STR, "https"); setopt(curl, CURLOPT_PROTOCOLS_STR, "https");
#else #else