Redirecting to http://rainbows.bogomips.org/lib/rainbows/never_block_rb.html ...
Last Modified
2011-05-09 02:32:36 +0000
Requires
  • never_block
Trac URL
http://bogomips.org/rainbows.git/tree/lib/rainbows/never_block.rb

Description

NeverBlock library that combines the EventMachine library with Ruby Fibers. This includes use of Thread-based Fibers under Ruby 1.8. It currently does NOT support a streaming “rack.input” but is compatible with everything else EventMachine supports.

:pool_size vs worker_connections

In your Rainbows! config block, you may specify a Fiber pool size to limit your application concurrency (without using Rainbows::AppPool) independently of worker_connections.

Rainbows! do
  use :NeverBlock, :pool_size => 50
  worker_connections 100
end