Skip to content

Commit

Permalink
Add 30 second timeout option to CurlAgent
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatsh committed May 31, 2021
1 parent e6fcc63 commit 34479a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libgrive/src/http/CurlAgent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down

0 comments on commit 34479a5

Please sign in to comment.