Reliable Messaging With Ruby and DRb

M

mplee168

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top