From 0dace7ec1b9a844ca5b3b51030589592665ef5b7 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 8 May 2017 16:05:23 +0200 Subject: 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 --- lib/asyn-ares.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/asyn-ares.c') 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; } -- cgit v1.2.1