[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Asynchronous DNS

From: Florian Weimer
Subject: Re: Asynchronous DNS
Date: Tue, 26 Jan 2016 23:05:38 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0

On 01/23/2016 02:50 PM, Lars Magne Ingebrigtsen wrote:
> 2) Use one of the newer async C resolver libraries.  This would not be
> available on all platforms, and would be Yet Another Dependency which
> I'm sure everybody would rather that we avoid.

The internal NSS (Name Service Switch) API is not asynchronous, so a
fully backwards-compatible asynchronous name resolution library simply
cannot exist.  The so-called asynchronous getaddrinfo variant just uses
threads under the covers, too.

You could use threads or a co-process, though.  It's not too hard to
implement as long as you don't have to care about head-of-line blocking.
 You could even a subshell invoking “getent ahosts” and parse the result.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]