ENH: set an upload speed limit for ctest

This commit is contained in:
Bill Hoffman 2009-06-25 16:38:47 -04:00
parent f96f7f8612
commit 736d8c1a0c
1 changed files with 5 additions and 0 deletions

View File

@ -124,6 +124,11 @@ bool cmCTestSubmitHandler::SubmitUsingFTP(const cmStdString& localprefix,
}
// enable uploading
::curl_easy_setopt(curl, CURLOPT_UPLOAD, 1) ;
// if there is little to no activity for 30 seconds stop submitting
::curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, 1) ;
::curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, 30) ;
::curl_easy_setopt(curl, CURLOPT_UPLOAD, 1) ;
cmStdString local_file = *file;