From 34479a5ac02f2f83557ec12f1ec2629e5798abaa Mon Sep 17 00:00:00 2001 From: Andrew Udvare Date: Wed, 19 Feb 2020 03:28:13 -0500 Subject: [PATCH] Add 30 second timeout option to CurlAgent --- libgrive/src/http/CurlAgent.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libgrive/src/http/CurlAgent.cc b/libgrive/src/http/CurlAgent.cc index 8a9d43f..a6e7d2f 100644 --- a/libgrive/src/http/CurlAgent.cc +++ b/libgrive/src/http/CurlAgent.cc @@ -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 )