From: Brian Candler Date: 2010-07-03T05:13:15+09:00 Subject: Re: Networking: select() blocks for seconds (> timeout) Raul Parolari wrote: >> I don't think it's the second, since 1.9.2 sets >> BasicSocket.do_not_reverse_lookup to true by default. >> Jruby doesn't yet, though I'm sure they'll get around to it sometime. >> -r > > Yes; I will anyhow use that line (although on the socket instance, not > on the class) so that there are no doubts. It is only settable globally, AFAIK. >> require 'socket' => true >> Socket.do_not_reverse_lookup = true => true >> TCPSocket.new("www.google.com",80).do_not_reverse_lookup = true NoMethodError: undefined method `do_not_reverse_lookup=' for # from (irb):4 from :0 -- Posted via http://www.ruby-forum.com/.