It seems like it wasn’t Webrick to fault for my problems getting the
simple example running, but rather the basic Socket class in Ruby:
irb(main):002:0> a = Socket.getnameinfo([“AF_INET”, ‘23’,
‘www.ruby-lang.org’])
SocketError: getnameinfo: System error
from (irb):2:in `getnameinfo’
from (irb):2
I’m kinda lost on how to get further from the very generic “System
error” message. Anyone got a clue on where to find a more fulfilling
error description for something like this?
···
–
David Heinemeier Hansson.
http://www.loudthinking.com/ – Broadcasting Brain
Well, i found a way to get webrick to work…its to do this before you
start it up:
Socket.do_not_reverse_lookup = true
There is definitely a problem on OS X with getaddrinfo, and perhaps
getnameinfo…its been reported in several places including…
http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/84909
Best,
Rich
···
On Jan 15, 2004, at 2:49 PM, David Heinemeier Hansson wrote:
It seems like it wasn’t Webrick to fault for my problems getting the
simple example running, but rather the basic Socket class in Ruby:
irb(main):002:0> a = Socket.getnameinfo([“AF_INET”, ‘23’,
‘www.ruby-lang.org’])
SocketError: getnameinfo: System error
from (irb):2:in `getnameinfo’
from (irb):2
I’m kinda lost on how to get further from the very generic “System
error” message. Anyone got a clue on where to find a more fulfilling
error description for something like this?
David Heinemeier Hansson.
http://www.loudthinking.com/ – Broadcasting Brain