mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:41:40 +03:00
dnscache: own source file, improvements
- Rename `Curl_resolv_unlink()` to `Curl_dns_entry_unlink()`. - Change `Curl_dnscache_get()` to return CURLcode result. Returns now `CURLE_COULDNT_RESOLVE_HOST` for "negative" cache entries. - Add `Curl_dnscache_add_negative()` to put a "negative" entry into the cache. Closes #20864
This commit is contained in:
parent
b0f6e9a3d7
commit
96d5b5c688
35 changed files with 1648 additions and 1413 deletions
|
|
@ -719,7 +719,8 @@ struct UrlState {
|
|||
|
||||
struct Curl_dns_entry *dns[2]; /* DNS to connect FIRST/SECONDARY */
|
||||
#ifdef USE_CURL_ASYNC
|
||||
struct Curl_async async; /* asynchronous name resolver data */
|
||||
struct Curl_resolv_async *async; /* asynchronous name resolver data */
|
||||
uint32_t next_async_id; /* id of the next async resolve operation */
|
||||
#endif
|
||||
|
||||
#ifdef USE_OPENSSL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue