1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 08:38:49 -05:00

curl: in retry output don't call all problems "transient"

... because when --retry-all-errors is used, the error isn't necessarily
transient at all.

Closes #5916
This commit is contained in:
Daniel Stenberg 2020-09-05 15:46:55 +02:00
parent 879007f811
commit 6ecb63e493
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -512,10 +512,10 @@ static CURLcode post_per_transfer(struct GlobalConfig *global,
static const char * const m[]={ static const char * const m[]={
NULL, NULL,
"(retrying all errors)", "(retrying all errors)",
"timeout", ": timeout",
"connection refused", ": connection refused",
"HTTP error", ": HTTP error",
"FTP error" ": FTP error"
}; };
sleeptime = per->retry_sleep; sleeptime = per->retry_sleep;
@ -529,7 +529,7 @@ static CURLcode post_per_transfer(struct GlobalConfig *global,
sleeptime = (long)retry_after * 1000; /* milliseconds */ sleeptime = (long)retry_after * 1000; /* milliseconds */
} }
} }
warnf(config->global, "Transient problem: %s " warnf(config->global, "Problem %s. "
"Will retry in %ld seconds. " "Will retry in %ld seconds. "
"%ld retries left.\n", "%ld retries left.\n",
m[retry], sleeptime/1000L, per->retry_numretries); m[retry], sleeptime/1000L, per->retry_numretries);