- set curl connection timeout to 60 minutes

- set curl ftp response timeout to 2 minutes
This commit is contained in:
Mark Vejvoda
2013-11-08 02:32:11 +00:00
parent 2baab89bab
commit 342aba5caa

View File

@@ -330,7 +330,10 @@ pair<FTP_Client_ResultType,string> FTPClientThread::getMapFromServer(pair<string
// Max 10 minutes to transfer
curl_easy_setopt(curl, CURLOPT_TIMEOUT, 600);
//curl_easy_setopt(curl, CURLOPT_TIMEOUT, 600);
// Max 60 minutes to transfer
curl_easy_setopt(curl, CURLOPT_TIMEOUT, 3600L);
curl_easy_setopt(curl, CURLOPT_FTP_RESPONSE_TIMEOUT, 120L);
/* Switch on full protocol/debug output */
if(SystemFlags::VERBOSE_MODE_ENABLED) curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
@@ -987,7 +990,10 @@ pair<FTP_Client_ResultType,string> FTPClientThread::getFileFromServer(FTP_Clien
curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, &ftpfile);
// Max 10 minutes to transfer
curl_easy_setopt(curl, CURLOPT_TIMEOUT, 600);
//curl_easy_setopt(curl, CURLOPT_TIMEOUT, 600);
// Max 60 minutes to transfer
curl_easy_setopt(curl, CURLOPT_TIMEOUT, 3600L);
curl_easy_setopt(curl, CURLOPT_FTP_RESPONSE_TIMEOUT, 120L);
// Switch on full protocol/debug output
if(SystemFlags::VERBOSE_MODE_ENABLED) curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);