Compare commits

...

2 Commits

Author SHA1 Message Date
Tatsh 1a7bd5d208
Merge 34479a5ac0 into 6901fbb169 2022-02-19 23:57:20 +11:00
Andrew Udvare 34479a5ac0 Add 30 second timeout option to CurlAgent 2021-05-31 03:07:54 -04:00
1 changed files with 1 additions and 0 deletions

View File

@ -84,6 +84,7 @@ void CurlAgent::Init()
::curl_easy_setopt( m_pimpl->curl, CURLOPT_HEADERFUNCTION, &CurlAgent::HeaderCallback ) ; ::curl_easy_setopt( m_pimpl->curl, CURLOPT_HEADERFUNCTION, &CurlAgent::HeaderCallback ) ;
::curl_easy_setopt( m_pimpl->curl, CURLOPT_HEADERDATA, this ) ; ::curl_easy_setopt( m_pimpl->curl, CURLOPT_HEADERDATA, this ) ;
::curl_easy_setopt( m_pimpl->curl, CURLOPT_HEADER, 0L ) ; ::curl_easy_setopt( m_pimpl->curl, CURLOPT_HEADER, 0L ) ;
::curl_easy_setopt( m_pimpl->curl, CURLOPT_TIMEOUT, 30L );
if ( mMaxUpload > 0 ) if ( mMaxUpload > 0 )
::curl_easy_setopt( m_pimpl->curl, CURLOPT_MAX_SEND_SPEED_LARGE, mMaxUpload ) ; ::curl_easy_setopt( m_pimpl->curl, CURLOPT_MAX_SEND_SPEED_LARGE, mMaxUpload ) ;
if ( mMaxDownload > 0 ) if ( mMaxDownload > 0 )