Hi,

In message "ping.rb"
    on 03/05/15, Dave Thomas <dave / pragprog.com> writes:

|On my Mac OSX,
|
|    TCPSocket.new('localhost', 'echo')
|
|raises EINVAL:

|Is this expected behavior?

I don't think so.  Possible reasons are:

  * OS X connect(2) behave differently
  * something wrong in configuration, e.g. IPv6 setting
  * my stupid portability bug


							matz.