cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Threaded resolver spins bug + patch

From: Jamie Lokier <jamie_at_shareable.org>
Date: Fri, 14 Aug 2009 19:22:19 +0100

Daniel Stenberg wrote:
> >I'm guessing that implementing and maintaining these features is probably
> >more effort than implementing ares in the first place. In addition,
> >customers expect that if Microsoft or Apple releases an improvement to the
> >name resolution library, that applications transparently pick it up.
>
> Isn't it already possible to do those things asynchronously in Windows? I
> mean, couldn't c-ares in this case simply work as a wrapper around some
> existing functions in Windows to offer this functionality?

> But don't worry. As long as there is people willing to help out and
> maintain the threaded resolver we will keep it. And as long c-ares isn't
> capable of transparently replace the system resolver it really isn't as
> good as I'd like it to be...

Note that Linux has similar name resolution features as Windows, like
MDNS for local resolution - take a look at /etc/nsswitch.conf. Also third
party modules can be added.

I don't see any way for c-ares to mimic the full functionality of
/etc/nsswitch.conf, except by calling libc's code.

-- Jamie
Received on 2009-08-14