]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
curl: in retry output don't call all problems "transient"
authorDaniel Stenberg <daniel@haxx.se>
Sat, 5 Sep 2020 13:46:55 +0000 (15:46 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 5 Sep 2020 16:14:48 +0000 (18:14 +0200)
... because when --retry-all-errors is used, the error isn't necessarily
transient at all.

Closes #5916

src/tool_operate.c

index 517ad1f620edb13931fac17f231697de5ea0ebdf..39200dcd2edb4e93b15b96f3a0fa3fb24879455d 100644 (file)
@@ -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;
@@ -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);