[#1094] Re: [ruby-cvs] ruby, ruby/lib: * eval.c (ev_const_defined, ev_const_get), variable.c — Dave Thomas <dave@...>

> * eval.c (rb_mod_autoload, rb_mod_autoload_p): new method;

12 messages 2003/05/29
[#1095] Re: [ruby-cvs] ruby, ruby/lib: * eval.c (ev_const_defined, ev_const_get), variable.c — nobu.nokada@... 2003/05/29

Hi,

ping.rb

From: Dave Thomas <dave@...>
Date: 2003-05-14 21:48:07 UTC
List: ruby-core #1037
On my Mac OSX,

    TCPSocket.new('localhost', 'echo')

raises EINVAL:

Errno::EINVAL: Invalid argument - "connect(2)"
         from (irb):2:in `initialize'
         from (irb):2:in `new'
         from (irb):2


This breaks ping.rb, which seems to assume it will be seeing 
ECONNREFUSED. This means that pingecho('localhost') returns false on my box.

Is this expected behavior?


Cheers


Dave



In This Thread

Prev Next