Details
Description
This is how the code currently logs getaddrinfo errors:
errno = getaddrinfo_errno(rc);
LOG_ERROR(("getaddrinfo: %s\n", strerror(errno)));
On Linux, specifically when using glibc, there is a better function for logging getaddrinfo errors called gai_strerror. An example:
LOG_ERROR(("getaddrinfo: %s\n", gai_strerror(rc)));
It doesn't miss a lot of cases like the errno based version does.