[MacRuby-devel] [MacRuby] #500: DRb problems
MacRuby
ruby-noreply at macosforge.org
Fri Dec 11 11:14:00 PST 2009
#500: DRb problems
-------------------------------+--------------------------------------------
Reporter: fonseka@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: minor | Milestone:
Component: MacRuby | Keywords:
-------------------------------+--------------------------------------------
Hi! I'm trying to write a simple DRb service.
Server runs on MacRuby
{{{
class Downloader
def download
puts "Downloading"
end
end
service = DRb.start_service("druby://0.0.0.0:9999", Downloader.new)
puts "service started on port 9999"
DRb.thread.join
}}}
Client runs on regular 1.8.7 Ruby
{{{
require 'drb'
server = DRbObject.new_with_uri('druby://localhost:9999')
server.download
DRb::DRbConnError: connection closed
from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:570:in
`load'
from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:632:in
`recv_reply'
from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:923:in
`recv_reply'
from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:1202:in
`send_message'
from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:1093:in
`method_missing'
from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:1177:in
`open'
from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:1092:in
`method_missing'
from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:1110:in
`with_friend'
from
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/drb/drb.rb:1091:in
`method_missing'
from (irb):3
}}}
if I try to run the client under macruby, the server.download call hangs
forever.
Latest nightly Macruby, on the latest SL with the latest XCode
--
Ticket URL: <http://www.macruby.org/trac/ticket/500>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list