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:
f0fa858
)
faster bailout on timeouts
author
Daniel Stenberg
<daniel@haxx.se>
Mon, 1 Oct 2001 23:25:26 +0000
(23:25 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Mon, 1 Oct 2001 23:25:26 +0000
(23:25 +0000)
lib/connect.c
patch
|
blob
|
history
diff --git
a/lib/connect.c
b/lib/connect.c
index
8ff3dd1
..
ef891d7
100644
(file)
--- a/
lib/connect.c
+++ b/
lib/connect.c
@@
-206,6
+206,8
@@
CURLcode Curl_connecthost(struct connectdata *conn,
/* get a new timeout for next attempt */
after = Curl_tvnow();
timeout_ms -= (long)(Curl_tvdiff(after, before)*1000);
+ if(timeout_ms < 0)
+ break;
before = after;
continue;
}
@@
-285,6
+287,8
@@
CURLcode Curl_connecthost(struct connectdata *conn,
/* get a new timeout for next attempt */
after = Curl_tvnow();
timeout_ms -= (long)(Curl_tvdiff(after, before)*1000);
+ if(timeout_ms < 0)
+ break;
before = after;
continue; /* try next address */
}