Triple HTTP request timeout to cope with slow instances
This commit is contained in:
parent
1a02dc179c
commit
5ad4923319
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue