mirror of https://github.com/vitalif/grive2
Add 30 second timeout option to CurlAgent
parent
e6fcc637f8
commit
34479a5ac0
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue