mirror of
https://github.com/curl/curl.git
synced 2026-07-23 12:27:19 +03: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:
parent
241b704e1f
commit
3992309285
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue