diff options
author | Daniel Hwang <gnawhleinad@github.com> | 2016-10-09 16:00:25 -0700 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2016-11-11 10:00:54 +0100 |
commit | cdfda3ee827da069f1871722278fd82e7cbb4194 (patch) | |
tree | b7990d962afd012e3ed1955dc364642a7f93c7f1 /src/tool_getparam.c | |
parent | ea80a2dcfcdc280ff412489dc3928600ec76296c (diff) |
curl: Add --retry-connrefused
to consider ECONNREFUSED as a transient error.
Closes #1064
Diffstat (limited to 'src/tool_getparam.c')
-rw-r--r-- | src/tool_getparam.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tool_getparam.c b/src/tool_getparam.c index 2d16e066d..d1888a2ab 100644 --- a/src/tool_getparam.c +++ b/src/tool_getparam.c @@ -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) |