feat: Change http request timeout from 3s to 6s

This commit is contained in:
chenhuijun
2024-07-31 10:51:57 +08:00
parent e0732aaf02
commit 8075810dd6

View File

@@ -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);