mirror of
https://github.com/curl/curl.git
synced 2026-07-25 17:57:18 +03:00
Revert "urldata: move async resolver state from easy handle to connectdata"
This reverts commit 56a4db2e4e (#12198)
We want the c-ares channel to be held in the easy handle, not per
connection - for performance.
Closes #12524
This commit is contained in:
parent
9f2d2290d1
commit
907eea0804
11 changed files with 138 additions and 155 deletions
|
|
@ -339,8 +339,8 @@ static CURLproxycode do_SOCKS4(struct Curl_cfilter *cf,
|
|||
|
||||
if(dns) {
|
||||
#ifdef CURLRES_ASYNCH
|
||||
conn->resolve_async.dns = dns;
|
||||
conn->resolve_async.done = TRUE;
|
||||
data->state.async.dns = dns;
|
||||
data->state.async.done = TRUE;
|
||||
#endif
|
||||
infof(data, "Hostname '%s' was found", sx->hostname);
|
||||
sxstate(sx, data, CONNECT_RESOLVED);
|
||||
|
|
@ -806,8 +806,8 @@ CONNECT_REQ_INIT:
|
|||
|
||||
if(dns) {
|
||||
#ifdef CURLRES_ASYNCH
|
||||
conn->resolve_async.dns = dns;
|
||||
conn->resolve_async.done = TRUE;
|
||||
data->state.async.dns = dns;
|
||||
data->state.async.done = TRUE;
|
||||
#endif
|
||||
infof(data, "SOCKS5: hostname '%s' found", sx->hostname);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue