A
Andreas S
I was following rinda examples from http://segment7.net/projects/ruby/drb/r=
inda/ringserver.html and randomly got
ECONNREFUSED: Connection refused - connect(2)
error from running the list_services code.=20
I tried a variation from ringserver example as attached below. I ran it on =
different machines (all Linux RedHat 2.4) with ruby 1.8.6p111+ and 1.8.7p22=
Same behavior. Eventually=2C I'll get several #<Errno::ECONNREFUSED: Conn=
ection refused - connect(2)> errors.
There is great chance that the mistake is in my code or due to the lack
of my understanding=2C so I would appreciate if someone could point it
out. Thanks in advance
-andre
foreach? end
-- server.rb --
require 'rinda/tuplespace'
require 'rinda/ring'
include Rinda
DRb.start_service
RingServer.new TupleSpace.new
DRb.thread.join
-- service.rb --
require 'rinda/ring'
include Rinda
DRb.start_service
RingFinger.primary.write [:service=2C "Test1"]
DRb.thread.join
-- client.rb --
require 'rinda/ring'
include Rinda
DRb.start_service
puts RingFinger.primary.read([:service=2C nil])[1]
_________________________________________________________________
See how Windows connects the people=2C information=2C and fun that are part=
of your life.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/=
inda/ringserver.html and randomly got
ECONNREFUSED: Connection refused - connect(2)
error from running the list_services code.=20
I tried a variation from ringserver example as attached below. I ran it on =
different machines (all Linux RedHat 2.4) with ruby 1.8.6p111+ and 1.8.7p22=
Same behavior. Eventually=2C I'll get several #<Errno::ECONNREFUSED: Conn=
ection refused - connect(2)> errors.
There is great chance that the mistake is in my code or due to the lack
of my understanding=2C so I would appreciate if someone could point it
out. Thanks in advance
-andre
foreach? ruby client.rbforeach i (*) # I have +- 100 files
foreach? end
-- server.rb --
require 'rinda/tuplespace'
require 'rinda/ring'
include Rinda
DRb.start_service
RingServer.new TupleSpace.new
DRb.thread.join
-- service.rb --
require 'rinda/ring'
include Rinda
DRb.start_service
RingFinger.primary.write [:service=2C "Test1"]
DRb.thread.join
-- client.rb --
require 'rinda/ring'
include Rinda
DRb.start_service
puts RingFinger.primary.read([:service=2C nil])[1]
_________________________________________________________________
See how Windows connects the people=2C information=2C and fun that are part=
of your life.
http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/=