From 3992309285cdb75076744aa8f9fb0f1cbd5dade5 Mon Sep 17 00:00:00 2001 From: Constantine Sapuntzakis Date: Mon, 12 Jul 2010 19:03:51 +0200 Subject: threaded resolver: fix timeout issue Reset old timer first so we can set a new one further in the future. --- lib/hostthre.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/hostthre.c') 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); } -- cgit v1.2.3