expire: remove Curl_expire_latest()

With the introduction of expire IDs and the fact that existing timers
can be removed now and thus never expire, the concept with adding a
"latest" timer is not working anymore as it risks to not expire at all.

So, to be certain the timers actually are in line and will expire, the
plain Curl_expire() needs to be used. The _latest() function was added
as a sort of shortcut in the past that's quite simply not necessary
anymore.

Follow-up to 31b39c40cf

Reported-by: Paul Harris

Closes #1555
This commit is contained in:
Daniel Stenberg 2017-06-08 08:34:32 +02:00
parent 165b7f5099
commit 7fffe97b78
4 changed files with 8 additions and 53 deletions

View file

@ -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, EXPIRE_SPEEDCHECK);
Curl_expire(data, 1000, EXPIRE_SPEEDCHECK);
return CURLE_OK;
}