summaryrefslogtreecommitdiff
path: root/libc/stdio/stdio_ext.cpp
diff options
context:
space:
mode:
authorLorenzo Colitti <lorenzo@google.com>2014-11-28 20:03:23 +0900
committerLorenzo Colitti <lorenzo@google.com>2014-12-01 20:03:25 +0000
commite5477f83b0a639b86d8cbe710f25d9808a8f72af (patch)
tree5928315c3044dd857e1c30c435135d5bb6d3309b /libc/stdio/stdio_ext.cpp
parent432f645887466ed7099addb20fa8915c8a29fcab (diff)
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
Diffstat (limited to 'libc/stdio/stdio_ext.cpp')
0 files changed, 0 insertions, 0 deletions