From e9fd794a616c10bd0d017a76f8fdccaf4cc76851 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 9 May 2017 12:47:49 +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/speedcheck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/speedcheck.c') diff --git a/lib/speedcheck.c b/lib/speedcheck.c index f0daf82c0..694d7f695 100644 --- a/lib/speedcheck.c +++ b/lib/speedcheck.c @@ -67,7 +67,7 @@ CURLcode Curl_speedcheck(struct Curl_easy *data, if(data->set.low_speed_limit) /* if low speed limit is enabled, set the expire timer to make this connection's speed get checked again in a second */ - Curl_expire_latest(data, 1000); + Curl_expire_latest(data, 1000, EXPIRE_SPEEDCHECK); return CURLE_OK; } -- cgit v1.2.3