Fix nonblocking socket resolver.