]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
tool_operate: --retry for HTTP 408 responses too
authorDaniel Stenberg <daniel@haxx.se>
Sun, 1 Nov 2020 23:04:22 +0000 (00:04 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 2 Nov 2020 07:14:22 +0000 (08:14 +0100)
This was inadvertently dropped from the code when the parallel support
was added.

Regression since b88940850 (7.66.0)

Reviewed-by: Jay Satiro
Closes #6155

src/tool_operate.c

index 00003797fe0a037ddc3674ccc9d3ff5b6a0b6fd1..4ad5052ffa7e638cf52e9fc655ea376514c26b52 100644 (file)
@@ -474,6 +474,7 @@ static CURLcode post_per_transfer(struct GlobalConfig *global,
         curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response);
 
         switch(response) {
+        case 408: /* Request Timeout */
         case 429: /* Too Many Requests (RFC6585) */
         case 500: /* Internal Server Error */
         case 502: /* Bad Gateway */