From: Dan Fandrich Date: Wed, 21 Dec 2011 19:09:09 +0000 (-0800) Subject: --retry: Retry transfers on timeout and DNS errors X-Git-Tag: curl-7_24_0~97 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cf9e78a229935d01b59b695c4252f31203e734d;p=thirdparty%2Fcurl.git --retry: Retry transfers on timeout and DNS errors --- diff --git a/src/tool_operate.c b/src/tool_operate.c index 1e881207fa..f880decb5a 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) ||