Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bagder committed Sep 5, 2020
1 parent 879007f commit 6ecb63e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tool_operate.c
Expand Up @@ -512,10 +512,10 @@ static CURLcode post_per_transfer(struct GlobalConfig *global,
static const char * const m[]={
NULL,
"(retrying all errors)",
"timeout",
"connection refused",
"HTTP error",
"FTP error"
": timeout",
": connection refused",
": HTTP error",
": FTP error"
};

sleeptime = per->retry_sleep;
Expand All @@ -529,7 +529,7 @@ static CURLcode post_per_transfer(struct GlobalConfig *global,
sleeptime = (long)retry_after * 1000; /* milliseconds */
}
}
warnf(config->global, "Transient problem: %s "
warnf(config->global, "Problem %s. "
"Will retry in %ld seconds. "
"%ld retries left.\n",
m[retry], sleeptime/1000L, per->retry_numretries);
Expand Down

0 comments on commit 6ecb63e

Please sign in to comment.