]> granicus.if.org Git - curl/commitdiff
restore the correct timeout time that my previous commit broke
authorDaniel Stenberg <daniel@haxx.se>
Mon, 11 Jun 2007 13:35:33 +0000 (13:35 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 11 Jun 2007 13:35:33 +0000 (13:35 +0000)
lib/hostares.c

index 92a0bebb6352bfa819f2fc7dc287c6a931365940..9385da2315aebf4e1f43b3d51b365d93fac57563 100644 (file)
@@ -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;