feat: Change http request timeout from 3s to 6s
This commit is contained in:
@@ -117,8 +117,8 @@ Response Request::post(const std::string &url, const std::string &body,
|
||||
curl_easy_setopt(mCurl, CURLOPT_WRITEFUNCTION, WriteMemoryCallback);
|
||||
curl_easy_setopt(mCurl, CURLOPT_WRITEDATA, (void *)&(resp.getContent()));
|
||||
|
||||
curl_easy_setopt(mCurl, CURLOPT_TIMEOUT, 3L);
|
||||
curl_easy_setopt(mCurl, CURLOPT_CONNECTTIMEOUT, 3L);
|
||||
curl_easy_setopt(mCurl, CURLOPT_TIMEOUT, 6L);
|
||||
curl_easy_setopt(mCurl, CURLOPT_CONNECTTIMEOUT, 6L);
|
||||
if (mVerbose)
|
||||
{
|
||||
curl_easy_setopt(mCurl, CURLOPT_VERBOSE, 1L);
|
||||
|
||||
Reference in New Issue
Block a user