aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2007-06-11 13:35:33 +0000
committerDaniel Stenberg <daniel@haxx.se>2007-06-11 13:35:33 +0000
commitd23d686de275e9aa1207a7bd03ae933078e7f42d (patch)
tree9b3706c485ec3ddb622adb4ada904c9046b7a594
parentc8677e9d3f02c486145d080a10e095899ca5af14 (diff)
restore the correct timeout time that my previous commit broke
-rw-r--r--lib/hostares.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/hostares.c b/lib/hostares.c
index 92a0bebb6..9385da231 100644
--- a/lib/hostares.c
+++ b/lib/hostares.c
@@ -253,7 +253,8 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn,
tvp = ares_timeout(data->state.areschannel, &store, &tv);
- ares_waitperform(conn, timeout);
+ /* use the timeout period ares returned to us above */
+ ares_waitperform(conn, tv.tv_sec * 1000 + tv.tv_usec/1000);
if(conn->async.done)
break;