[Cmake-commits] [cmake-commits] david.cole committed cmCTestSubmitHandler.cxx 1.46 1.47
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Sep 1 17:23:52 EDT 2009
Update of /cvsroot/CMake/CMake/Source/CTest
In directory public:/mounts/ram/cvs-serv11689/Source/CTest
Modified Files:
cmCTestSubmitHandler.cxx
Log Message:
Add curl timeout options to the SubmitUsingHTTP method. They were only in the SubmitUsingFTP method.
Index: cmCTestSubmitHandler.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/CTest/cmCTestSubmitHandler.cxx,v
retrieving revision 1.46
retrieving revision 1.47
diff -C 2 -d -r1.46 -r1.47
*** cmCTestSubmitHandler.cxx 25 Jun 2009 20:38:47 -0000 1.46
--- cmCTestSubmitHandler.cxx 1 Sep 2009 21:23:50 -0000 1.47
***************
*** 126,133 ****
// 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) ;
--- 126,134 ----
// 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) ;
!
::curl_easy_setopt(curl, CURLOPT_UPLOAD, 1) ;
***************
*** 315,318 ****
--- 316,323 ----
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);
More information about the Cmake-commits
mailing list