OSDN Git Service

Ignore unreliable DNS servers.
authorPierre Imai <imaipi@google.com>
Mon, 22 Feb 2016 08:50:41 +0000 (17:50 +0900)
committerPierre Imai <imaipi@google.com>
Tue, 5 Apr 2016 02:42:43 +0000 (11:42 +0900)
commit6b3f0d65f2c706625e5efb495df0f2c6178b965a
treea28a9ea297b813ebb6647f113305f54ef17e5a93
parente725dc164015d873b64639f0fee9ba5c30175f4c
Ignore unreliable DNS servers.

Collect statistics about DNS query success state and delay. Ignore
servers that have been tried at least five times and have a success rate
of < 0.25. Retry these servers once every 180s.

Bug: 25731675
Change-Id: I78e24f43e388dca82fb81835e1796f4c7dce8da3
libc/dns/include/resolv_netid.h
libc/dns/include/resolv_params.h [new file with mode: 0644]
libc/dns/include/resolv_private.h
libc/dns/include/resolv_stats.h [new file with mode: 0644]
libc/dns/resolv/res_cache.c
libc/dns/resolv/res_send.c
libc/dns/resolv/res_stats.c [new file with mode: 0644]