From: nobu.nokada@... Date: 2003-05-15T14:24:16+09:00 Subject: Re: ping.rb Hi, At Thu, 15 May 2003 13:06:15 +0900, Dave Thomas wrote: > Here's the appropriate section of the ktrace: > > ktrace ruby -r socket -e "TCPSocket.new('localhost', 'echo')" > > 15037 ruby CALL socket(0x1e,0x1,0x6) > 15037 ruby RET socket 11/0xb > 15037 ruby CALL fcntl(0xb,0x3,0) > 15037 ruby RET fcntl 2 > 15037 ruby CALL fcntl(0xb,0x4,0x6) > 15037 ruby RET fcntl 0 > 15037 ruby CALL connect(0xb,0x222960,0x1c) > 15037 ruby RET connect -1 errno 36 Operation now in progress > 15037 ruby CALL select(0xc,0,0xbfffd2b0,0,0) > 15037 ruby RET select 1 > 15037 ruby CALL connect(0xb,0x222960,0x1c) > 15037 ruby RET connect -1 errno 22 Invalid argument > 15078 ruby CALL connect(0xb,0x2229e0,0x10) Seems here should be the problem. You can see 3 `#ifdef __CYGWIN__'s in ruby_connect(). These code may be needed on Mac OSX. -- Nobu Nakada