mirror of
https://github.com/curl/curl.git
synced 2026-08-04 14:56:19 +03:00
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:
parent
165b7f5099
commit
7fffe97b78
4 changed files with 8 additions and 53 deletions
|
|
@ -1070,7 +1070,7 @@ static CURLcode singleipconnect(struct connectdata *conn,
|
|||
|
||||
conn->connecttime = Curl_tvnow();
|
||||
if(conn->num_addr > 1)
|
||||
Curl_expire_latest(data, conn->timeoutms_per_addr, EXPIRE_DNS_PER_NAME);
|
||||
Curl_expire(data, conn->timeoutms_per_addr, EXPIRE_DNS_PER_NAME);
|
||||
|
||||
/* Connect TCP sockets, bind UDP */
|
||||
if(!isconnected && (conn->socktype == SOCK_STREAM)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue