mirror of
https://github.com/curl/curl.git
synced 2026-08-24 15:33:37 +03:00
async resolvers: further cleanups
asyn-ares.c and asyn-thread.c are two separate backends that implement the same (internal) async resolver API for libcurl to use. Backend is specified at build time. The internal resolver API is defined in asyn.h for asynch resolvers.
This commit is contained in:
parent
24d84da073
commit
7de2f9271c
15 changed files with 302 additions and 299 deletions
|
|
@ -855,7 +855,7 @@ static int multi_getsock(struct Curl_one_easy *easy,
|
|||
return 0;
|
||||
|
||||
case CURLM_STATE_WAITRESOLVE:
|
||||
return Curl_resolv_getsock(easy->easy_conn, socks, numsocks);
|
||||
return Curl_resolver_getsock(easy->easy_conn, socks, numsocks);
|
||||
|
||||
case CURLM_STATE_PROTOCONNECT:
|
||||
return Curl_protocol_getsock(easy->easy_conn, socks, numsocks);
|
||||
|
|
@ -1071,7 +1071,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
|
|||
struct Curl_dns_entry *dns = NULL;
|
||||
|
||||
/* check if we have the name resolved by now */
|
||||
easy->result = Curl_is_resolved(easy->easy_conn, &dns);
|
||||
easy->result = Curl_resolver_is_resolved(easy->easy_conn, &dns);
|
||||
|
||||
if(dns) {
|
||||
/* Update sockets here. Mainly because the socket(s) may have been
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue