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

Re: getaddrinfo() return value chaos



Thomas Hood <jdthood@gmail.com> writes:

> Executive summary: The getaddrinfo() returns different values depending
> on the OS and on nsswitch.conf settings, making it very difficult to use
> getaddrinfo() return values to deciding how to handle an error.

As you note, I believe glibc upstream is actively working on fixing this.
I've seen quite a few patches flow by around fixing the return status in
various system error conditions, and it struck me as more comprehensive
and better thought-out and not as ad hoc.

-- 
Russ Allbery (rra@debian.org)               <http://www.eyrie.org/~eagle/>


Reply to: