diff options
author | David Cole <david.cole@kitware.com> | 2009-09-01 21:23:50 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2009-09-01 21:23:50 (GMT) |
commit | d741a6a57ff1110aad398a1ea7c3291255053487 (patch) | |
tree | 9bc9f194120984bef2ba834fe8a3e2e6c58b37dd /Source/CTest/cmCTestSubmitHandler.cxx | |
parent | 8710cc6422fcb8887bf3b5642ab4c4934c570740 (diff) | |
download | CMake-d741a6a57ff1110aad398a1ea7c3291255053487.zip CMake-d741a6a57ff1110aad398a1ea7c3291255053487.tar.gz CMake-d741a6a57ff1110aad398a1ea7c3291255053487.tar.bz2 |
Add curl timeout options to the SubmitUsingHTTP method. They were only in the SubmitUsingFTP method.
Diffstat (limited to 'Source/CTest/cmCTestSubmitHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestSubmitHandler.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestSubmitHandler.cxx b/Source/CTest/cmCTestSubmitHandler.cxx index efb31c3..8c98a85 100644 --- a/Source/CTest/cmCTestSubmitHandler.cxx +++ b/Source/CTest/cmCTestSubmitHandler.cxx @@ -125,10 +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 + + // if there is little to no activity for too long 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; @@ -314,6 +315,10 @@ bool cmCTestSubmitHandler::SubmitUsingHTTP(const cmStdString& localprefix, /* enable uploading */ curl_easy_setopt(curl, CURLOPT_UPLOAD, 1) ; + // if there is little to no activity for too long stop submitting + ::curl_easy_setopt(curl, CURLOPT_LOW_SPEED_LIMIT, 1) ; + ::curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, 30) ; + /* HTTP PUT please */ ::curl_easy_setopt(curl, CURLOPT_PUT, 1); ::curl_easy_setopt(curl, CURLOPT_VERBOSE, 1); |