changed the wait time
This commit is contained in:
parent
db3cc0cad4
commit
09ef549971
|
@ -37,7 +37,7 @@ typedef struct {
|
||||||
} TransferStruct;
|
} TransferStruct;
|
||||||
|
|
||||||
/* ------------------------ Static variable ------------------------------ */
|
/* ------------------------ Static variable ------------------------------ */
|
||||||
/** \brief curl shared interface - not actually being used. */
|
/** \brief curl shared interface - not sure if is being used properly. */
|
||||||
static CURLSH *curl_share;
|
static CURLSH *curl_share;
|
||||||
/** \brief curl multi interface handle */
|
/** \brief curl multi interface handle */
|
||||||
static CURLM *curl_multi;
|
static CURLM *curl_multi;
|
||||||
|
@ -227,7 +227,7 @@ static int curl_multi_perform_once()
|
||||||
}
|
}
|
||||||
|
|
||||||
if(max_fd == -1) {
|
if(max_fd == -1) {
|
||||||
sleep((unsigned int)timeout / 1000);
|
sleep(1);
|
||||||
} else {
|
} else {
|
||||||
struct timeval t;
|
struct timeval t;
|
||||||
t.tv_sec = timeout/1000;
|
t.tv_sec = timeout/1000;
|
||||||
|
@ -260,6 +260,7 @@ static int curl_multi_perform_once()
|
||||||
curl_msg->data.result,
|
curl_msg->data.result,
|
||||||
curl_easy_strerror(curl_msg->data.result),
|
curl_easy_strerror(curl_msg->data.result),
|
||||||
url);
|
url);
|
||||||
|
sleep(1);
|
||||||
} else {
|
} else {
|
||||||
/* Transfer successful, query the file size */
|
/* Transfer successful, query the file size */
|
||||||
if (transfer->type == FILESTAT) {
|
if (transfer->type == FILESTAT) {
|
||||||
|
|
Loading…
Reference in New Issue