diff options
author | Dan Fandrich <dan@coneharvesters.com> | 2011-12-21 11:09:09 -0800 |
---|---|---|
committer | Dan Fandrich <dan@coneharvesters.com> | 2011-12-21 11:09:09 -0800 |
commit | 2cf9e78a229935d01b59b695c4252f31203e734d (patch) | |
tree | 0ad6bcd39d0c483051b1e511193ae1b3a347599f | |
parent | 430527a1d73f40fed26103c431f7ca3422bc8aed (diff) |
--retry: Retry transfers on timeout and DNS errors
-rw-r--r-- | src/tool_operate.c | 5 |
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) || |