From 342aba5caa5a12ba04b7cc66e91dcd716e01636c Mon Sep 17 00:00:00 2001 From: Mark Vejvoda Date: Fri, 8 Nov 2013 02:32:11 +0000 Subject: [PATCH] - set curl connection timeout to 60 minutes - set curl ftp response timeout to 2 minutes --- .../sources/platform/posix/miniftpclient.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/source/shared_lib/sources/platform/posix/miniftpclient.cpp b/source/shared_lib/sources/platform/posix/miniftpclient.cpp index 19c24057d..04e2e8784 100644 --- a/source/shared_lib/sources/platform/posix/miniftpclient.cpp +++ b/source/shared_lib/sources/platform/posix/miniftpclient.cpp @@ -330,7 +330,10 @@ pair FTPClientThread::getMapFromServer(pair 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);