From 8075810dd6a325ef8aed3165f164c074ca7b36fe Mon Sep 17 00:00:00 2001 From: chenhuijun Date: Wed, 31 Jul 2024 10:51:57 +0800 Subject: [PATCH] feat: Change http request timeout from 3s to 6s --- src/recon/Request.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/recon/Request.cpp b/src/recon/Request.cpp index 58d85b6..64716e6 100644 --- a/src/recon/Request.cpp +++ b/src/recon/Request.cpp @@ -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);