aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tool_operate.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tool_operate.c b/src/tool_operate.c
index 1e881207f..f880decb5 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -1233,7 +1233,10 @@ int operate(struct Configurable *config, int argc, argv_item_t argv[])
RETRY_LAST /* not used */
} retry = RETRY_NO;
long response;
- if(CURLE_OPERATION_TIMEDOUT == res)
+ if((CURLE_OPERATION_TIMEDOUT == res) ||
+ (CURLE_COULDNT_RESOLVE_HOST == res) ||
+ (CURLE_COULDNT_RESOLVE_PROXY == res) ||
+ (CURLE_FTP_ACCEPT_TIMEOUT == res))
/* retry timeout always */
retry = RETRY_TIMEOUT;
else if((CURLE_OK == res) ||