summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorMathias Schnarrenberger <mathias.schnarrenberger@web.de>2021-04-05 14:21:08 +0200
committerMathias Schnarrenberger <mathias.schnarrenberger@web.de>2021-04-05 14:21:08 +0200
commita7c75fdc8177d2fa6ed13293945a7d80d32cdbad (patch)
tree882ea522bf30ca36749a0456176dc16aa372ae51 /src/net
parent20ce7578cc9b60d37fb1664fadfb561b547f8280 (diff)
parent1e96bcafd63f4b3e8586fd389cbb53a66cd52df4 (diff)
Merge branch 'FixTimeoutIssuesDuringNetworkDowntime_Curl'
Diffstat (limited to 'src/net')
-rw-r--r--src/net/CurlHttpClient.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/CurlHttpClient.cpp b/src/net/CurlHttpClient.cpp
index 6dc43f8..13973cc 100644
--- a/src/net/CurlHttpClient.cpp
+++ b/src/net/CurlHttpClient.cpp
@@ -11,6 +11,9 @@ namespace TgBot {
CurlHttpClient::CurlHttpClient() : _httpParser() {
curlSettings = curl_easy_init();
+
+ curl_easy_setopt(curlSettings, CURLOPT_CONNECTTIMEOUT, 20);
+ curl_easy_setopt(curlSettings, CURLOPT_TIMEOUT, 25);
}
CurlHttpClient::~CurlHttpClient() {