Subject: Re: Per query timeouts

Re: Per query timeouts

From: William Ahern <william_at_25thandclement.com>
Date: 2006-01-21

On Sat, Jan 21, 2006 at 12:08:03AM +0100, Daniel Stenberg wrote:
> On Wed, 18 Jan 2006, William Ahern wrote:
>
> >I wouldn't mind an ares_gethostbyname_?? variant. Or, we could just not
> >worry about it and wait for or design a better alternative interface for
> >Ares. The old-style IPv4-era look-alike interfaces have other irredeemable
> >qualities.
>
> I think we shouldn't try to patch it into the current functions too kludgy,
> but instead try to make an interface that we'll like to use even in the
> future. APIs tend to stick...
>
> I was gonna say that we'd better base it on Dominick's getaddrinfo() work,
> but then I noticed that we had no man page for it... and then I noticed we
> don't even have a getaddrinfo() version! :-O
>

I'll write ares_query_tm() first. All the other interfaces, including
ares_getaddrinfo(), ultimately use ares_query(), right?
Received on Sat Jan 21 00:19:29 2006