Forum: Ruby DRb connection closed (nil size)

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Df809220e0bdddc3d1e92e4c31111d18?d=identicon&s=25 Chris Miller (chrism71)
on 2006-03-06 16:50
[Using Ruby 1.8.3 and DRb 2.0.4]

I'm getting odd behavior with DRb. I'm half of
my development machines, we get the following
load error when trying to start our DRb server:

/usr/local/lib/ruby/1.8/drb/drb.rb:567:in `load': connection closed
        from ./../config/../apis/ism/ism_service.rb:36:in `join'
        from ./../config/../apis/ism/ism_service.rb:36:in `start'
        from ./ism_server.rb:10

The error is stemming from the socket reporting a "nil" size. Here
is the drb.rb code snippet:

561: def load(soc)  # :nodoc:
562:      begin
563:        sz =        # sizeof (N)
564:      rescue
565:        raise(DRbConnError, $!.message, $!.backtrace)
566:      end
567:      raise(DRbConnError, 'connection closed') if sz.nil?

Here's the server code snippet, where we try to start:
20:    def start()
21:      puts("Starting ISM Service...")
22:      if @worker == nil
23:        _trap_signals()
25:        @queue =
27:        @interrupted = false
29:        @worker = {
30:          puts("ISM Service started!")
31:          while !@interrupted do
32:            _get_message()
33:            sleep(2)
34:          end
35:        }
36:        @worker.join

Note that we've done a series of DRb tests with small
clients/servers and it seems to be functioning normally

Again, it works on some machines, but not others, having
identical code stacks (although the OS's differ). Has anyone
seen this behaviour before? Any help on how to proceed and
debug would be much appreciated....

This topic is locked and can not be replied to.