Try to be better about handling the results of getaddrinfo(): when