diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-01-24 20:04:20 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-01-24 20:07:09 -0800 |
commit | 667b05819b85165061c445fb2c75ef161a5de5b6 (patch) | |
tree | af69ab3fe1f143c408c6c9013debf1c9afe26c72 /lib/rainbows/http_server.rb | |
parent | 9f7f497dc21d904a1af20465318d85811daf0652 (diff) | |
download | rainbows-667b05819b85165061c445fb2c75ef161a5de5b6.tar.gz |
Edge-triggered epoll concurrency model with blocking accept() in a (hopefully) native thread. This is recommended over Epoll for Ruby 1.9 users as it can workaround accept()-scalability issues on multicore machines.
Diffstat (limited to 'lib/rainbows/http_server.rb')
-rw-r--r-- | lib/rainbows/http_server.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rainbows/http_server.rb b/lib/rainbows/http_server.rb index a9767bf..91c6cad 100644 --- a/lib/rainbows/http_server.rb +++ b/lib/rainbows/http_server.rb @@ -72,7 +72,7 @@ class Rainbows::HttpServer < Unicorn::HttpServer new_defaults = { 'rainbows.model' => (@use = model.to_sym), 'rack.multithread' => !!(model.to_s =~ /Thread/), - 'rainbows.autochunk' => [:Coolio,:Rev,:Epoll, + 'rainbows.autochunk' => [:Coolio,:Rev,:Epoll,:XAcceptEpoll, :EventMachine,:NeverBlock].include?(@use), } Rainbows::Const::RACK_DEFAULTS.update(new_defaults) |