Add 30 second timeout option to CurlAgent

pull/308/head
Andrew Udvare 2020-02-19 03:28:13 -05:00
parent e6fcc637f8
commit 34479a5ac0
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_HEADERDATA, this ) ;
::curl_easy_setopt( m_pimpl->curl, CURLOPT_HEADER, 0L ) ;
::curl_easy_setopt( m_pimpl->curl, CURLOPT_TIMEOUT, 30L );
if ( mMaxUpload > 0 )
::curl_easy_setopt( m_pimpl->curl, CURLOPT_MAX_SEND_SPEED_LARGE, mMaxUpload ) ;
if ( mMaxDownload > 0 )