summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStian Soiland-Reyes <stain@apache.org>2019-10-16 14:35:56 +0100
committerJay Satiro <raysatiro@yahoo.com>2019-10-16 13:56:38 -0400
commitfe5c2464db11a2a4ec035def144635b5f1295885 (patch)
treeefd3382a99fd5c077be4e03de05846361ac798e1
parente062043433381fa5fd2f90b2fcc9dc912dbb79f6 (diff)
downloadcurl-fe5c2464db11a2a4ec035def144635b5f1295885.tar.gz
tool_operate: Fix retry sleep time shown to user when Retry-After
- If server header Retry-After is being used for retry sleep time then show that value to the user instead of the normal retry sleep time. This is a follow-up to 640b973 (7.66.0) which changed curl tool so that the value from Retry-After header overrides other retry timing options. Closes https://github.com/curl/curl/pull/4498
-rw-r--r--src/tool_operate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index b82a6672d..3087d2d14 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -529,7 +529,7 @@ static CURLcode post_per_transfer(struct GlobalConfig *global,
warnf(config->global, "Transient problem: %s "
"Will retry in %ld seconds. "
"%ld retries left.\n",
- m[retry], per->retry_sleep/1000L, per->retry_numretries);
+ m[retry], sleeptime/1000L, per->retry_numretries);
per->retry_numretries--;
tool_go_sleep(sleeptime);