Handled correctly getaddrinfo syscall errors