- set max time for FTP transfers to 10 minutes
This commit is contained in:
parent
2ab82c9271
commit
654de490c2
|
@ -253,6 +253,9 @@ FTP_Client_ResultType FTPClientThread::getMapFromServer(string mapFileName, stri
|
||||||
/* Set a pointer to our struct to pass to the callback */
|
/* Set a pointer to our struct to pass to the callback */
|
||||||
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &ftpfile);
|
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &ftpfile);
|
||||||
|
|
||||||
|
// Max 10 minutes to transfer
|
||||||
|
curl_easy_setopt(curl, CURLOPT_TIMEOUT, 600);
|
||||||
|
|
||||||
/* Switch on full protocol/debug output */
|
/* Switch on full protocol/debug output */
|
||||||
if(SystemFlags::VERBOSE_MODE_ENABLED) curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
if(SystemFlags::VERBOSE_MODE_ENABLED) curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
||||||
|
|
||||||
|
@ -407,6 +410,9 @@ FTP_Client_ResultType FTPClientThread::getTilesetFromServer(string tileSetName,
|
||||||
curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, file_progress);
|
curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, file_progress);
|
||||||
curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, &ftpfile);
|
curl_easy_setopt(curl, CURLOPT_PROGRESSDATA, &ftpfile);
|
||||||
|
|
||||||
|
// Max 10 minutes to transfer
|
||||||
|
curl_easy_setopt(curl, CURLOPT_TIMEOUT, 600);
|
||||||
|
|
||||||
// Switch on full protocol/debug output
|
// Switch on full protocol/debug output
|
||||||
if(SystemFlags::VERBOSE_MODE_ENABLED) curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
if(SystemFlags::VERBOSE_MODE_ENABLED) curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user