aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2014-09-23 11:44:03 +0200
committerDaniel Stenberg <daniel@haxx.se>2014-09-23 11:44:03 +0200
commitd9762a7cdb35e70f8cb0bf1c2f8019e8391616e1 (patch)
tree5348b3e9640c74d013bfb4080754931e35f11d4e
parent3ef73d9a88fcea534f6a1d667e456fdc74fb7b9b (diff)
threaded-resolver: revert Curl_expire_latest() switch
The switch to using Curl_expire_latest() in commit cacdc27f52b was a mistake and was against the advice even mentioned in that commit. The comparison in asyn-thread.c:Curl_resolver_is_resolved() makes Curl_expire() the suitable function to use. Bug: http://curl.haxx.se/bug/view.cgi?id=1426 Reported-By: graysky
-rw-r--r--lib/asyn-thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/asyn-thread.c b/lib/asyn-thread.c
index e4ad32bb7..6cdc9adff 100644
--- a/lib/asyn-thread.c
+++ b/lib/asyn-thread.c
@@ -541,7 +541,7 @@ CURLcode Curl_resolver_is_resolved(struct connectdata *conn,
td->poll_interval = 250;
td->interval_end = elapsed + td->poll_interval;
- Curl_expire_latest(conn->data, td->poll_interval);
+ Curl_expire(conn->data, td->poll_interval);
}
return CURLE_OK;