[Cmake-commits] [cmake-commits] david.cole committed cmCTestSubmitHandler.cxx 1.47 1.48

cmake-commits at cmake.org cmake-commits at cmake.org
Fri Sep 4 14:00:28 EDT 2009


Update of /cvsroot/CMake/CMake/Source/CTest
In directory public:/mounts/ram/cvs-serv22850

Modified Files:
	cmCTestSubmitHandler.cxx 
Log Message:
Increase curl submit timeout. A submit will timeout if there are 120 seconds of very little activity. 30 seconds was too short.


Index: cmCTestSubmitHandler.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/CTest/cmCTestSubmitHandler.cxx,v
retrieving revision 1.47
retrieving revision 1.48
diff -C 2 -d -r1.47 -r1.48
*** cmCTestSubmitHandler.cxx	1 Sep 2009 21:23:50 -0000	1.47
--- cmCTestSubmitHandler.cxx	4 Sep 2009 18:00:26 -0000	1.48
***************
*** 33,36 ****
--- 33,38 ----
  #include <sys/stat.h>
  
+ #define SUBMIT_TIMEOUT_IN_SECONDS_DEFAULT 120
+ 
  typedef std::vector<char> cmCTestSubmitHandlerVectorOfChar;
  
***************
*** 125,135 ****
  
        // 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) ;
  
        cmStdString local_file = *file;
--- 127,138 ----
  
        // 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,
!         SUBMIT_TIMEOUT_IN_SECONDS_DEFAULT);
  
!       ::curl_easy_setopt(curl, CURLOPT_UPLOAD, 1);
  
        cmStdString local_file = *file;
***************
*** 314,322 ****
  
        /* 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 */
--- 317,326 ----
  
        /* 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,
!         SUBMIT_TIMEOUT_IN_SECONDS_DEFAULT);
  
        /* HTTP PUT please */



More information about the Cmake-commits mailing list