Lines Matching refs:ares
28 * Only for ares-enabled builds
67 #include <ares.h>
68 #include <ares_version.h> /* really old c-ares didn't include this by
72 /* c-ares 1.5.0 or later, the callback proto is modified */
102 int num_pending; /* number of outstanding c-ares requests */
103 struct Curl_addrinfo *temp_ai; /* intermediary result while fetching c-ares
113 obtaining a "definitive" one. For old c-ares without getaddrinfo.
115 This is intended to equal the c-ares default timeout. cURL always uses that
116 default value. Unfortunately, c-ares doesn't expose its default timeout in
128 * environment. Initializes ares library.
144 * Deinitializes ares library.
182 if(ares_ver < 0x011400) { /* c-ares included similar change since 1.20.0 */
188 if c ares < 1.20.0: curl set timeout to CARES_TIMEOUT_PER_ATTEMPT (2s)
190 if c-ares >= 1.20.0 it already has the timeout to 2s, curl does not need
193 if c-ares >= 1.24.0, user can set the timeout via /etc/resolv.conf to
194 overwrite c-ares' timeout.
206 ares channel before returning error! */
214 * structure). Destroys the ares channel.
226 * 'from' ares channel and passes the resulting channel to the 'to' pointer.
253 * We're equivalent to Curl_resolver_cancel() for the c-ares resolver. We
284 * with ares. The caller must make sure that this function is only called when
285 * we have a working ares channel.
316 * 1) Ask ares what sockets it currently plays with, then
317 * 2) wait for the timeout period to check for action on ares' sockets.
318 * 3) tell ares to act on all the sockets marked as "with action"
362 above, as otherwise the ares name resolve won't timeout! */
412 /* Cancel the raw c-ares request, which will fire query_completed_cb() with
485 /* use the timeout period ares returned to us above if less than one
517 /* failure, so we cancel the ares operation */
528 connclose(data->conn, "c-ares resolve failed");
567 * ares_query_completed_cb() is the callback that ares will call when
569 * when using ares, is completed either successfully or with failure.
586 /* when this ares handle is getting destroyed, the 'arg' pointer may not
610 /* Only these c-ares status values count as "definitive" for these
641 first place. Without modifying c-ares, we can't know exactly where in
648 c-ares query timeout. That is enough time for a typical parallel
652 c-ares timeout (5 seconds) plus the round trip time for the successful
653 request, which seems bearable. The downside is that c-ares might race
657 c-ares retry cycle each request is.
666 /* c-ares 1.16.0 or later */
669 * ares2addr() converts an address list provided by c-ares to an internal
758 * Curl_resolver_getaddrinfo() - when using ares
851 * from ares library, which will cause any and all queries to fail.
853 * any changes to c-ares. This lets c-ares use it's defaults, which
881 #else /* too old c-ares version! */
898 #else /* c-ares version too old! */
925 #else /* c-ares version too old! */
952 #else /* c-ares version too old! */