bionic/libc/dns/resolv
Lorenzo Colitti e5477f83b0 Fail queries fast if no DNS servers are configured.
When no DNS servers are configured (and thus there is no chance
that the DNS query will suceed), res_nsend returns early, but
it does not tell the cache that the query has failed.
Therefore, if the caller retries the query, it will block for
PENDING_REQUEST_TIMEOUT (= 20 seconds) waiting for the "existing
query" (which isn't actually doing anything) to complete.

Bug: 18240188
Bug: 18327075
Change-Id: I0df13ff4a17ee65e640be96695a3af31b020963a
2014-12-01 20:03:25 +00:00
..
herror.c Moved nameser.h and namser_compat.h to public include dir 2014-03-04 15:07:07 +00:00
res_cache.c When comparing DNS server configs, also compare number of servers 2014-09-11 08:36:12 +09:00
res_comp.c Moved nameser.h and namser_compat.h to public include dir 2014-03-04 15:07:07 +00:00
res_data.c Moved nameser.h and namser_compat.h to public include dir 2014-03-04 15:07:07 +00:00
res_debug.c Update res_debug.c to take into account changes 2014-03-07 20:03:57 +00:00
res_debug.h Renamed the misleading libc/netbsd directory to libc/dns. 2014-02-28 16:31:04 +00:00
res_init.c Fix all resolv warnings and turn on -Werror. 2014-07-02 16:27:20 -07:00
res_mkquery.c Moved nameser.h and namser_compat.h to public include dir 2014-03-04 15:07:07 +00:00
res_private.h Renamed the misleading libc/netbsd directory to libc/dns. 2014-02-28 16:31:04 +00:00
res_query.c bionic: Replace iface with opaque netid in resolver. 2014-04-01 16:25:49 -04:00
res_send.c Fail queries fast if no DNS servers are configured. 2014-12-01 20:03:25 +00:00
res_state.c Fix three clang complaints about the DNS code. 2014-07-07 09:44:17 -07:00