projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
430527a
)
--retry: Retry transfers on timeout and DNS errors
author
Dan Fandrich
<dan@coneharvesters.com>
Wed, 21 Dec 2011 19:09:09 +0000
(11:09 -0800)
committer
Dan Fandrich
<dan@coneharvesters.com>
Wed, 21 Dec 2011 19:09:09 +0000
(11:09 -0800)
src/tool_operate.c
patch
|
blob
|
history
diff --git
a/src/tool_operate.c
b/src/tool_operate.c
index
1e88120
..
f880dec
100644
(file)
--- 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) ||