summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2020-11-02 00:04:22 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-11-02 08:14:22 +0100
commit6da7a7e5ce9a54ee577403b1f38ed80c0c527988 (patch)
tree4858682315b8dc14515346a772ad78c38099c7de /src
parent584ccb5ef2488d589bc7589aef70227a98b080a2 (diff)
downloadcurl-6da7a7e5ce9a54ee577403b1f38ed80c0c527988.tar.gz
tool_operate: --retry for HTTP 408 responses too
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
Diffstat (limited to 'src')
-rw-r--r--src/tool_operate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index 00003797f..4ad5052ff 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -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 */