|
|
|
@ -192,9 +192,9 @@ static ares_status_t ares_process_fds_nolock(ares_channel_t *channel, |
|
|
|
|
const ares_fd_events_t *events, |
|
|
|
|
size_t nevents, unsigned int flags) |
|
|
|
|
{ |
|
|
|
|
ares_timeval_t now; |
|
|
|
|
size_t i; |
|
|
|
|
ares_status_t status = ARES_SUCCESS; |
|
|
|
|
ares_timeval_t now; |
|
|
|
|
size_t i; |
|
|
|
|
ares_status_t status = ARES_SUCCESS; |
|
|
|
|
|
|
|
|
|
if (channel == NULL || (events == NULL && nevents != 0)) { |
|
|
|
|
return ARES_EFORMERR; /* LCOV_EXCL_LINE: DefensiveCoding */ |
|
|
|
@ -920,7 +920,7 @@ static void ares_probe_failed_server(ares_channel_t *channel, |
|
|
|
|
const ares_server_t *server, |
|
|
|
|
const ares_query_t *query) |
|
|
|
|
{ |
|
|
|
|
const ares_server_t *last_server = ares_slist_last_val(channel->servers); |
|
|
|
|
const ares_server_t *last_server = ares_slist_last_val(channel->servers); |
|
|
|
|
unsigned short r; |
|
|
|
|
ares_timeval_t now; |
|
|
|
|
ares_slist_node_t *node; |
|
|
|
@ -968,9 +968,8 @@ static void ares_probe_failed_server(ares_channel_t *channel, |
|
|
|
|
* use the server in question */ |
|
|
|
|
probe_server->probe_pending = ARES_TRUE; |
|
|
|
|
ares_send_nolock(channel, probe_server, |
|
|
|
|
ARES_SEND_FLAG_NOCACHE|ARES_SEND_FLAG_NORETRY, |
|
|
|
|
ARES_SEND_FLAG_NOCACHE | ARES_SEND_FLAG_NORETRY, |
|
|
|
|
query->query, server_probe_cb, NULL, NULL); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static size_t ares_calc_query_timeout(const ares_query_t *query, |
|
|
|
@ -1100,8 +1099,7 @@ static ares_status_t ares_conn_query_write(ares_conn_t *conn, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ares_status_t ares_send_query(ares_server_t *requested_server, |
|
|
|
|
ares_query_t *query, |
|
|
|
|
const ares_timeval_t *now) |
|
|
|
|
ares_query_t *query, const ares_timeval_t *now) |
|
|
|
|
{ |
|
|
|
|
ares_channel_t *channel = query->channel; |
|
|
|
|
ares_server_t *server; |
|
|
|
|