From: Shashank Date Date: 2003-01-15T10:36:51+09:00 Subject: Re: drb question wrote in message > Please try either of the followings. > > (a) initialize DRb, in drb_client.rb. (recommend) > > | require 'drb' > | STDOUT.sync = true > | DRb.start_service > | > | cliObj = DRbObject.new(nil,"druby://localhost:5555") > | > | 5.times { |i| puts cliObj.time_now; sleep(2); } > | > | cliObj.bye Ok, did that ! > (b) patch drb/drb.rb. > > --- drb.rb 27 Dec 2002 23:28:25 -0000 1.92 > +++ drb.rb 14 Jan 2003 21:24:03 -0000 > @@ -372,7 +372,7 @@ > @uri, option = DRbProtocol.uri_option(uri, DRb.config) > @ref = DRbURIOption.new(option) unless option.nil? > else > - @uri = uri ? uri : DRb.uri > + @uri = uri ? uri : (DRb.uri rescue nil) > @ref = obj ? DRb.to_id(obj) : nil > end > end > Skipped this patch initially ... did not want to do it until necessary. > (c) return nil (TstSrvr#bye) > > | def bye(msg="") > | puts msg > | Thread.new { sleep(1); exit(1) } > | nil > | end Did that, and yes now it is working like I wanted it to ! Thanks a lot. I also tried the patch independently and of course, it worked too. But I did not move it in our production environment. I will let you decide if it needs to be refactored into your source. Again thanks for the prompt help. -- shanko