OSDN Git Service

Adding a timeout to tcp dns lookup connects.
authorRobert Greenwalt <rgreenwalt@google.com>
Wed, 11 Jan 2012 18:04:48 +0000 (10:04 -0800)
committerRobert Greenwalt <rgreenwalt@google.com>
Thu, 12 Jan 2012 22:26:41 +0000 (14:26 -0800)
commitecd0e95a0276c1ba72c7331f5e4617815f015f22
treee54104270c6705bcb9fe3ca159b3ac69d852390e
parent94963af28e445384e19775a838a29e6a71708179
Adding a timeout to tcp dns lookup connects.

TCP isn't supported on some dns servers, which makes the old code
hang forever.

NOT adding a stopship to remove debugging stuff - it was too painful
(14s timeout on failed tcp dns lookups) so we decided not to bother people.

bug:5766949
Change-Id: I381c20c3e11b8e994438d4f7c58ef643cd36554e
libc/netbsd/resolv/res_send.c