From 2cf9e78a229935d01b59b695c4252f31203e734d Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Wed, 21 Dec 2011 11:09:09 -0800 Subject: --retry: Retry transfers on timeout and DNS errors --- src/tool_operate.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) || -- cgit v1.2.3