diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2009-06-25 20:38:47 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2009-06-25 20:38:47 (GMT) |
commit | 736d8c1a0caca54bdc43eabcd448e6aee8a9f97b (patch) | |
tree | d55897ce3dbf9d0a5dd5b00f66246038b37849b7 /Source | |
parent | f96f7f8612bbd7e493708852d4777c18026082e9 (diff) | |
download | CMake-736d8c1a0caca54bdc43eabcd448e6aee8a9f97b.zip CMake-736d8c1a0caca54bdc43eabcd448e6aee8a9f97b.tar.gz CMake-736d8c1a0caca54bdc43eabcd448e6aee8a9f97b.tar.bz2 |
ENH: set an upload speed limit for ctest
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CTest/cmCTestSubmitHandler.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/CTest/cmCTestSubmitHandler.cxx b/Source/CTest/cmCTestSubmitHandler.cxx index 0c787f5..efb31c3 100644 --- a/Source/CTest/cmCTestSubmitHandler.cxx +++ b/Source/CTest/cmCTestSubmitHandler.cxx @@ -125,6 +125,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; if ( !cmSystemTools::FileExists(local_file.c_str()) ) |