Skip to content

Commit

Permalink
threaded-resolver: revert Curl_expire_latest() switch
Browse files Browse the repository at this point in the history
The switch to using Curl_expire_latest() in commit cacdc27 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
  • Loading branch information
bagder committed Sep 23, 2014
1 parent 3ef73d9 commit d9762a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/asyn-thread.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d9762a7

Please sign in to comment.