]> granicus.if.org Git - curl/commitdiff
threaded resolver: fix timeout issue
authorConstantine Sapuntzakis <csapuntz@gmail.com>
Mon, 12 Jul 2010 17:03:51 +0000 (19:03 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 12 Jul 2010 17:03:51 +0000 (19:03 +0200)
Reset old timer first so we can set a new one further in the future.

lib/hostthre.c

index 6698cd8481807b1b2e828a9342ba760907f76d7a..b24cff56274c3a0fe54eb0885cc09e0f5171f080 100644 (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);
   }