[PATCH][BZ #14719] Return EAI_SYSTEM from getaddrinfo if we run out of fds
Siddhesh Poyarekar
siddhesh.poyarekar@gmail.com
Mon Apr 1 05:39:00 GMT 2013
On 25 March 2013 18:28, Dmitry V. Levin <ldv@altlinux.org> wrote:
> As a side effect of this change, ECONNREFUSED results to EAI_SYSTEM
> instead of EAI_AGAIN. Caught by gnulib's test-getaddrinfo which now fails
> when no network is available:
> http://git.savannah.gnu.org/cgit/gnulib.git/tree/tests/test-getaddrinfo.c
> Other apps may rely on getaddrinfo returning EAI_AGAIN in case of
> ECONNREFUSED, so this is a regression.
I am not able to reproduce this either with networking disabled (i.e.
no nameservers defined, interfaces down, etc.) or with an invalid
nameserver (an active host that does not have anything listening on 53
udp or tcp). In both cases I get EAI_NONAME with 2.15 as well as
2.17. Can you provide steps to reproduce?
Thanks,
Siddhesh
--
http://siddhesh.in
More information about the Libc-alpha
mailing list