Brian Candler
9/12/2008 9:06:00 PM
> Anyone know why Socket.getaddrinfo and IPSocket.getaddress take up to 3
> seconds to return when the host doesn't have a record in DNS?
They seem to do reverse DNS lookups on occasions where you might not want
them to (e.g. finding the IP address to which a socket is bound). Try adding
to the top of your program:
require 'socket'
Socket.do_not_reverse_lookup=true