From: Constantine Sapuntzakis Date: Mon, 12 Jul 2010 17:03:51 +0000 (+0200) Subject: threaded resolver: fix timeout issue X-Git-Tag: curl-7_21_1~95 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3992309285cdb75076744aa8f9fb0f1cbd5dade5;p=curl threaded resolver: fix timeout issue Reset old timer first so we can set a new one further in the future. --- diff --git a/lib/hostthre.c b/lib/hostthre.c index 6698cd848..b24cff562 100644 --- a/lib/hostthre.c +++ b/lib/hostthre.c @@ -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); }