DRb Problems with Mac OS X 10.5.3

Looks like this has re-surfaced in 10.6 (Snow Leopard). Fresh install
and I can’t start drb with localhost. Using the hack above fixes the
problem for now, but just though I’d mention it.

Andy Keep wrote:

I’ve not done too much Ruby socket programming, but it seems to be that
it doesn’t like 0 as a service number, because it is interpreting it as
the real service 0, instead of the empty service… if you use nil
instead it works fine… you might be able to patch dRb to use that as a
work around.

Looks to me like this might not be the reason, as I was able to get it
to work by using 127.0.0.1 instead of localhost:

require ‘drb’
=> true

DRb.start_service(‘druby://localhost:0’)
SocketError: getaddrinfo: nodename nor servname provided, or not known

DRb.start_service(‘druby://127.0.0.1:0’)
=> #<DRb::DRbServer:0x383a24 @grp=#ThreadGroup:0x3839e8,