aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-03-31 13:19:41 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-03-31 13:19:41 +0000
commit9d0330d5bd768c8e1765bb4d21be171972ebf043 (patch)
tree0b2c291fed11e5942104cc774613b484e72a4f94
parentd5074f74bbc8b27ca962afeba059d9d70a7edc80 (diff)
Remove the elapsed time from the most recent select() only.
-rw-r--r--lib/hostip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 2cd4e110e..ab372c40a 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -616,7 +616,6 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn,
{
CURLcode rc=CURLE_OK;
struct SessionHandle *data = conn->data;
- struct timeval now = Curl_tvnow();
long timeout = CURL_TIMEOUT_RESOLVE; /* default name resolve timeout */
/* now, see if there's a connect timeout or a regular timeout to
@@ -632,6 +631,7 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn,
fd_set read_fds, write_fds;
struct timeval *tvp, tv, store;
int count;
+ struct timeval now = Curl_tvnow();
store.tv_sec = (int)timeout;
store.tv_usec = 0;