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

Re: getaddrinfo() return value chaos



On Mon, Jul 08, 2013 at 08:23:28AM +0200, Helmut Grohne wrote:
> 
> Indeed. So maybe mdns is to blame here for part of the trouble? Can you
> verify that really the last mdns4 entry makes up for the difference?

mdns has always been a problem in my expierence.  I thought there
was a bug open about that against libnss-mdns but I can't find it.

> > In any case, because of all these differences and changes we
> > won't have a good, stable getaddrinfo() interface to program
> > against until Jessie.  In the meantime a program that needs to
> > distinguish between different causes for a name resolution
> > failure will have to do more than just check the status and
> > errno from getaddinfo().
> 
> In particular one of the more recent bugs set out to return EAI_NONAME
> when the network is unavailable. This may be a condition where a lookup
> needs to be retried though.

I think it needs to return EAI_AGAIN in that case.


Kurt


Reply to: