Project

General

Profile

Bug #13127 » drb_server_test.rb

DRb server code - mkanoor@redhat.com (Madhu Kanoor), 01/13/2017 06:01 PM

 
require 'drb/drb'
class TestObject
#include DRb::DRbUndumped
attr_accessor :name
def initialize(str)
@name = str
end
end

my_array = (1..100).collect do |item|
TestObject.new("#{item}_object")
end

DRb.start_service('druby://localhost:9999', my_array)
DRb.thread.join
(1-1/3)