diff options
author | Oleg Morozenkov <m@oleg.rocks> | 2021-04-06 00:58:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-06 00:58:34 +0300 |
commit | a0d31e277f0b62d24b5ee1777c07c7c942b92e1b (patch) | |
tree | 882ea522bf30ca36749a0456176dc16aa372ae51 /src/net/CurlHttpClient.cpp | |
parent | f2d7dc110d3ba37914298bd073500396fcf93967 (diff) | |
parent | a7c75fdc8177d2fa6ed13293945a7d80d32cdbad (diff) |
Merge pull request #165 from MPSMPS/master
Fixes https://github.com/reo7sp/tgbot-cpp/issues/162
Diffstat (limited to 'src/net/CurlHttpClient.cpp')
-rw-r--r-- | src/net/CurlHttpClient.cpp | 3 |
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() { |