mirror of
https://github.com/curl/curl.git
synced 2026-07-30 06:38:05 +03:00
curl: Add --retry-connrefused
to consider ECONNREFUSED as a transient error. Closes #1064
This commit is contained in:
parent
ea80a2dcfc
commit
cdfda3ee82
5 changed files with 24 additions and 1 deletions
|
|
@ -125,6 +125,7 @@ static const struct LongShort aliases[]= {
|
|||
{"$e", "proxy-digest", FALSE},
|
||||
{"$f", "proxy-basic", FALSE},
|
||||
{"$g", "retry", TRUE},
|
||||
{"$V", "retry-connrefused", FALSE},
|
||||
{"$h", "retry-delay", TRUE},
|
||||
{"$i", "retry-max-time", TRUE},
|
||||
{"$k", "proxy-negotiate", FALSE},
|
||||
|
|
@ -793,6 +794,9 @@ ParameterError getparameter(char *flag, /* f or -long-flag */
|
|||
if(err)
|
||||
return err;
|
||||
break;
|
||||
case 'V': /* --retry-connrefused */
|
||||
config->retry_connrefused = toggle;
|
||||
break;
|
||||
case 'h': /* --retry-delay */
|
||||
err = str2unum(&config->retry_delay, nextarg);
|
||||
if(err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue