more error messages in curl_process_msgs() for handling HTTP 429

This commit is contained in:
Fufu Fang 2019-04-26 14:25:52 +01:00
parent 04c0499fae
commit 7d81d742d3
1 changed files with 2 additions and 0 deletions

View File

@ -105,10 +105,12 @@ static void curl_process_msgs(CURLMsg *curl_msg, int n_running_curl, int n_mesgs
if (http_resp == HTTP_TOO_MANY_REQUESTS) {
fprintf(stderr, "curl_process_msgs(): HTTP 429\n");
sleep(HTTP_429_WAIT);
fprintf(stderr, "curl_process_msgs(): Finished sleeping\n");
/* Re-add the link into the queue, if it is a file stat query */
if (transfer->type == FILESTAT) {
Link_get_stat(transfer->link);
}
fprintf(stderr, "curl_process_msgs(): Link re-added\n");
}
if (curl_msg->data.result) {