asyn-thread: remove 'status' from struct Curl_async
While it gets stored, nothing needs nor uses it. Closes #16347
This commit is contained in:
parent
8b3690c688
commit
1ee06e873c
@ -782,7 +782,6 @@ struct Curl_addrinfo *Curl_resolver_getaddrinfo(struct Curl_easy *data,
|
|||||||
data->state.async.hostname = res->hostname;
|
data->state.async.hostname = res->hostname;
|
||||||
data->state.async.port = port;
|
data->state.async.port = port;
|
||||||
data->state.async.done = FALSE; /* not done */
|
data->state.async.done = FALSE; /* not done */
|
||||||
data->state.async.status = 0; /* clear */
|
|
||||||
data->state.async.dns = NULL; /* clear */
|
data->state.async.dns = NULL; /* clear */
|
||||||
|
|
||||||
/* initial status - failed */
|
/* initial status - failed */
|
||||||
|
|||||||
@ -437,7 +437,6 @@ static bool init_resolve_thread(struct Curl_easy *data,
|
|||||||
|
|
||||||
async->port = port;
|
async->port = port;
|
||||||
async->done = FALSE;
|
async->done = FALSE;
|
||||||
async->status = 0;
|
|
||||||
async->dns = NULL;
|
async->dns = NULL;
|
||||||
td->thread_hnd = curl_thread_t_null;
|
td->thread_hnd = curl_thread_t_null;
|
||||||
td->start = Curl_now();
|
td->start = Curl_now();
|
||||||
|
|||||||
@ -70,8 +70,6 @@ CURLcode Curl_addrinfo_callback(struct Curl_easy *data,
|
|||||||
struct Curl_dns_entry *dns = NULL;
|
struct Curl_dns_entry *dns = NULL;
|
||||||
CURLcode result = CURLE_OK;
|
CURLcode result = CURLE_OK;
|
||||||
|
|
||||||
data->state.async.status = status;
|
|
||||||
|
|
||||||
if(CURL_ASYNC_SUCCESS == status) {
|
if(CURL_ASYNC_SUCCESS == status) {
|
||||||
if(ai) {
|
if(ai) {
|
||||||
if(data->share)
|
if(data->share)
|
||||||
|
|||||||
@ -574,7 +574,6 @@ struct Curl_async {
|
|||||||
void *resolver; /* resolver state, if it is used in the URL state -
|
void *resolver; /* resolver state, if it is used in the URL state -
|
||||||
ares_channel e.g. */
|
ares_channel e.g. */
|
||||||
int port;
|
int port;
|
||||||
int status; /* if done is TRUE, this is the status from the callback */
|
|
||||||
BIT(done); /* set TRUE when the lookup is complete */
|
BIT(done); /* set TRUE when the lookup is complete */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user