diff --git a/Source/CTest/cmCTestSubmitHandler.cxx b/Source/CTest/cmCTestSubmitHandler.cxx index 0c787f5868..efb31c3c97 100644 --- a/Source/CTest/cmCTestSubmitHandler.cxx +++ b/Source/CTest/cmCTestSubmitHandler.cxx @@ -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;