diff options
author | Daniel Stenberg <daniel@haxx.se> | 2007-06-11 13:32:49 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2007-06-11 13:32:49 +0000 |
commit | c8677e9d3f02c486145d080a10e095899ca5af14 (patch) | |
tree | 94b32bd5b846d79e5e7256dc640d7235b635effd /lib | |
parent | a32eaffa779da793f5ca93206e5ae9ee50f80969 (diff) |
Properly wait for the c-ares resolve to complete, hopefully the cure for
bug #1733955
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hostares.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/hostares.c b/lib/hostares.c index 3aa7782bb..92a0bebb6 100644 --- a/lib/hostares.c +++ b/lib/hostares.c @@ -253,8 +253,9 @@ CURLcode Curl_wait_for_resolv(struct connectdata *conn, tvp = ares_timeout(data->state.areschannel, &store, &tv); - if(!ares_waitperform(conn, tv.tv_sec * 1000 + tv.tv_usec/1000)) - /* no sockets to wait on, get out of the loop */ + ares_waitperform(conn, timeout); + + if(conn->async.done) break; timediff = Curl_tvdiff(Curl_tvnow(), now); /* spent time */ |