Maybe it is better to use uv_getaddrinfo (in libuv case) to make it more asynchronous?
If other event libraries doesn't have similar option, they can fallback to getaddrinfo_a (GNU glibc specific) or to synchronous getaddrinfo. At least, it can be made asynchronous for libuv.
Maybe it is better to use uv_getaddrinfo (in libuv case) to make it more asynchronous? If other event libraries doesn't have similar option, they can fallback to getaddrinfo_a (GNU glibc specific) or to synchronous getaddrinfo. At least, it can be made asynchronous for libuv.