From fe5c2464db11a2a4ec035def144635b5f1295885 Mon Sep 17 00:00:00 2001 From: Stian Soiland-Reyes Date: Wed, 16 Oct 2019 14:35:56 +0100 Subject: 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 --- src/tool_operate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.1