diff options
author | Constantine Sapuntzakis <csapuntz@gmail.com> | 2010-07-12 19:03:51 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-07-12 19:03:51 +0200 |
commit | 3992309285cdb75076744aa8f9fb0f1cbd5dade5 (patch) | |
tree | ae884571a5d25b9dcad999e4f980b987c9852050 | |
parent | 241b704e1fcc0d2a5403b3567f390e662a83dff6 (diff) |
threaded resolver: fix timeout issue
Reset old timer first so we can set a new one further in the future.
-rw-r--r-- | lib/hostthre.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); } |