1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

threaded resolver: fix timeout issue

Reset old timer first so we can set a new one further in the future.
This commit is contained in:
Constantine Sapuntzakis 2010-07-12 19:03:51 +02:00 committed by Daniel Stenberg
parent 241b704e1f
commit 3992309285

View File

@ -451,6 +451,9 @@ CURLcode Curl_is_resolved(struct connectdata *conn,
td->interval_end = elapsed + td->poll_interval;
/* Reset old timer so we can set a new one further in the future */
Curl_expire(conn->data, 0);
Curl_expire(conn->data, td->poll_interval);
}