mirror of
https://github.com/curl/curl.git
synced 2026-08-26 04:13:31 +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
|
|
@ -1995,7 +1995,7 @@ connect_host(struct SessionHandle *data,
|
|||
if((CURLE_OK == res) && async) {
|
||||
/* Now, if async is TRUE here, we need to wait for the name
|
||||
to resolve */
|
||||
res = Curl_wait_for_resolv(*conn, NULL);
|
||||
res = Curl_resolver_wait_resolv(*conn, NULL);
|
||||
if(CURLE_OK == res)
|
||||
/* Resolved, continue with the connection */
|
||||
res = Curl_async_resolved(*conn, &protocol_done);
|
||||
|
|
@ -2047,7 +2047,7 @@ Curl_reconnect_request(struct connectdata **connp)
|
|||
if(async) {
|
||||
/* Now, if async is TRUE here, we need to wait for the name
|
||||
to resolve */
|
||||
result = Curl_wait_for_resolv(conn, NULL);
|
||||
result = Curl_resolver_wait_resolv(conn, NULL);
|
||||
if(result)
|
||||
return result;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue