Immediately try next nameserver on recv() failure
commit05ef2d67dcfca516e49e133d9f7e3c62feed2358
authorIngo van Lil <inguin@gmx.de>
Wed, 28 Jul 2010 12:52:08 +0000 (28 14:52 +0200)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 28 Jul 2010 13:36:03 +0000 (28 15:36 +0200)
tree69d4592030fa83b8ae992a51c777fe97738cc379
parentcafbb2a0a0ac469393dc3192ba67ffbe1ddb5d4e
Immediately try next nameserver on recv() failure

If there is a problem communicating with a nameserver the __dns_lookup()
function will not immediately advance to the next nameserver but instead
continue waiting until the timeout expires. This will cause a 30 second
delay even if no nameserver is configured in resolv.conf and no DNS is
running on localhost.

Signed-off-by: Ingo van Lil <inguin@gmx.de>
Acked-by: Roman I Khimov <khimov@altell.ru>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/inet/resolv.c