Hello,
My local IP address is 10.8.8.41. I could not figure out why when I
use 127.0.0.1 the code works but fails when I use my IP address. The
error is "druby://10.8.8.41:6438 - #<Errno::EBADF: Bad file descriptor
- connect(2)"
require ‘rubygems’
require ‘reliable-msg’
manager = ReliableMsg::QueueManager.new
manager.start
queue = ReliableMsg::Queue.new ‘my-queue’, :drb_uri => ‘druby://
127.0.0.1:6438’
#queue = ReliableMsg::Queue.new ‘my-queue’, :drb_uri => ‘druby://
10.8.8.41:6438’
queue.put “This is a test object”
msg = queue.get
p msg
manager.stop
Thanks