OSDN Git Service

DO NOT MERGE: 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>
Wed, 6 Apr 2016 01:41:07 +0000 (10:41 +0900)
commit4d8e740b0868b2670599b949ff07d74e5f317114
treee8857c93594eff461562608bc54077e8cf521bc4
parent6f90c1ac59eb4e7811b7b0e408615049c935c0a9
DO NOT MERGE: 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

(cherry picked from commit 6b3f0d65f2c706625e5efb495df0f2c6178b965a)

Change-Id: Id989404b14fd885fb31a5a4de36a4186be1c9ad1
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]