From: Masatoshi SEKI Date: 2004-09-23T10:44:52+09:00 Subject: Re: DrbUndumped and GC On 2004/09/23, at 10:14, Ara.T.Howard wrote: > so the client will have a handle on the Proxy, and so will the client. > how > will the server know when the client no longer needs the handle and gc > the > object? POLS says the object would be gc'd in the client as normal > and that > this would trigger the gc on the server. but what if more than one > client has > a handle on the server side proxy? now we are reference counting > across > remote nodes. my gut says this could get one in trouble quickly if > many > DrbUndumped objects were being returned to many clients, or even if a > single > DrbUndumped object was returned to many clients... > > i'm about to dig into the code and run some tests to see - but am > hoping some > of you drb experts out there may already have done this ;-) How about TimerIdConv? require 'drb/timeridconv' .... DRb.install_id_conv(DRb::TimerIdConv.new) DRb.start_service(....) I like the following simple approach. class Server def initialize @proxy = Proxy.new end def method @proxy end end