Increase curl submit timeout. A submit will timeout if there are 120 seconds of very little activity. 30 seconds was too short.
This commit is contained in:
parent
5517e17bf9
commit
68b8332088
|
@ -32,6 +32,8 @@ PURPOSE. See the above copyright notices for more information.
|
||||||
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
|
||||||
|
#define SUBMIT_TIMEOUT_IN_SECONDS_DEFAULT 120
|
||||||
|
|
||||||
typedef std::vector<char> cmCTestSubmitHandlerVectorOfChar;
|
typedef std::vector<char> cmCTestSubmitHandlerVectorOfChar;
|
||||||
|
|
||||||
static size_t
|
static size_t
|
||||||
|
@ -128,7 +130,8 @@ bool cmCTestSubmitHandler::SubmitUsingFTP(const cmStdString& localprefix,
|
||||||
|
|
||||||
// if there is little to no activity for too long 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_LIMIT, 1);
|
||||||
::curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, 30) ;
|
::curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME,
|
||||||
|
SUBMIT_TIMEOUT_IN_SECONDS_DEFAULT);
|
||||||
|
|
||||||
::curl_easy_setopt(curl, CURLOPT_UPLOAD, 1);
|
::curl_easy_setopt(curl, CURLOPT_UPLOAD, 1);
|
||||||
|
|
||||||
|
@ -317,7 +320,8 @@ bool cmCTestSubmitHandler::SubmitUsingHTTP(const cmStdString& localprefix,
|
||||||
|
|
||||||
// if there is little to no activity for too long 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_LIMIT, 1);
|
||||||
::curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME, 30) ;
|
::curl_easy_setopt(curl, CURLOPT_LOW_SPEED_TIME,
|
||||||
|
SUBMIT_TIMEOUT_IN_SECONDS_DEFAULT);
|
||||||
|
|
||||||
/* HTTP PUT please */
|
/* HTTP PUT please */
|
||||||
::curl_easy_setopt(curl, CURLOPT_PUT, 1);
|
::curl_easy_setopt(curl, CURLOPT_PUT, 1);
|
||||||
|
|
Loading…
Reference in New Issue