Prev: Threading with Activerecord
Next: Aliasing classes
From: Brian Candler on 2 Jul 2010 16:13 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 #<TCPSocket:0x7f65b8da0000> from (irb):4 from :0 -- Posted via http://www.ruby-forum.com/.
From: Roger Pack on 2 Jul 2010 17:54
> It is only settable globally, AFAIK. Appears to be settable per socket in 1.9. >> instance.do_not_reverse_lookup=true => true -- Posted via http://www.ruby-forum.com/. |