summaryrefslogtreecommitdiff
path: root/lib/asyn-ares.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-05-08 16:05:23 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-05-08 16:05:23 +0200
commit0dace7ec1b9a844ca5b3b51030589592665ef5b7 (patch)
tree6b87d47062817fcaf93811f78e330d996b524695 /lib/asyn-ares.c
parent78007305203140162f567fd611182cfc41ac51dd (diff)
downloadcurl-0dace7ec1b9a844ca5b3b51030589592665ef5b7.tar.gz
multi: assign IDs to all timers and make each timer singleton
A) reduces the timeout lists drastically B) prevents a lot of superfluous loops for timers that expires "in vain" when it has actually already been extended to fire later on
Diffstat (limited to 'lib/asyn-ares.c')
-rw-r--r--lib/asyn-ares.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asyn-ares.c b/lib/asyn-ares.c
index 281fb03c8..a8396ea52 100644
--- a/lib/asyn-ares.c
+++ b/lib/asyn-ares.c
@@ -232,7 +232,7 @@ int Curl_resolver_getsock(struct connectdata *conn,
milli = (timeout->tv_sec * 1000) + (timeout->tv_usec/1000);
if(milli == 0)
milli += 10;
- Curl_expire_latest(conn->data, milli);
+ Curl_expire_latest(conn->data, milli, EXPIRE_ARES);
return max;
}