Forum: Ruby drb load limit

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
jdonnell (Guest)
on 2006-03-03 02:54
(Received via mailing list)
I am trying to get a simple drb server/client to work, but I am getting

DRb::DRbConnError: too large packet 50331648
and can't figure out why. Anyone have any ideas? my code follows

class SentenceWrapper
  def random(ind)
    return 'hi'
DRb::DRbServer.default_load_limit '90214400'
DRb.start_service("druby://:7777",, {:load_limit =>
puts DRb.uri

irb(main):023:0> ro =, 'druby://localhost:7777')
=> #<DRb::DRbObject:0x46d254 @ref=nil, @uri="druby://localhost:7777">
irb(main):024:0> ro.random(1)
DRb::DRbConnError: too large packet 50331648
        from /usr/lib/ruby/1.8/drb/drb.rb:570:in `load'
        from /usr/lib/ruby/1.8/drb/drb.rb:620:in `recv_reply'
        from /usr/lib/ruby/1.8/drb/drb.rb:909:in `recv_reply'
        from /usr/lib/ruby/1.8/drb/drb.rb:1148:in `send_message'
        from /usr/lib/ruby/1.8/drb/drb.rb:1059:in `method_missing'
        from /usr/lib/ruby/1.8/drb/drb.rb:1058:in `open'
        from /usr/lib/ruby/1.8/drb/drb.rb:1058:in `method_missing'
        from (irb):24
Joel VanderWerf (Guest)
on 2006-03-03 06:16
(Received via mailing list)
jdonnell wrote:
>   end
> end
> DRb::DRbServer.default_load_limit '90214400'

Use a number, rather than a string, here^^^^^

> DRb.start_service("druby://:7777",, {:load_limit =>
> '90214400'})

and here^^^
jdonnell (Guest)
on 2006-03-07 02:04
(Received via mailing list)
now it just hangs there and does nothing :(
jdonnell (Guest)
on 2006-03-07 02:56
(Received via mailing list)
ok, for some reason it doesn't work if I run the server on my laptop,
but I works just fine if the server is run elsewhere. Thanks for the
help :)
This topic is locked and can not be replied to.