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

Re: getaddrinfo() return value chaos



Kurt has filed a new bug report against eglibc

    http://sourceware.org/bugzilla/show_bug.cgi?id=15726

which draws the developers' attention to RFC3493 which specifies the return values
of getaddrinfo(). These should be as follows.

- Things work as expected: return 0
- The nameserver replies that the hostname does not exist: EAI_FAIL
- The nameserver doesn't reply, or replies with a temporary failure: EAI_AGAIN
- You used AI_NUMERICHOST or AI_NUMERICSERV and didn't give a number: EAI_NONAME
Further discussion can best be carried on in the upstream Bugzilla ticket. -- Thomas Hood

Reply to: