diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-05-04 13:41:55 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-05-04 13:41:55 -0700 |
commit | e8cedc2584d23a8ab214ff96a973dc37344c2796 (patch) | |
tree | e5fa8a9f1f033f4ae407280f7db457f49d003666 /lib/rainbows/http_server.rb | |
parent | e61f0f4f901848e59b7b756224c765afde217a71 (diff) | |
download | rainbows-e8cedc2584d23a8ab214ff96a973dc37344c2796.tar.gz |
Since we have conditional deferred execution in the regular EventMachine concurrency model, we can drop this one. This concurrency model never fully worked due to lack of graceful shut downs, and was never promoted nor supported, either.
Diffstat (limited to 'lib/rainbows/http_server.rb')
-rw-r--r-- | lib/rainbows/http_server.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/rainbows/http_server.rb b/lib/rainbows/http_server.rb index 50231ff..d009e50 100644 --- a/lib/rainbows/http_server.rb +++ b/lib/rainbows/http_server.rb @@ -60,11 +60,7 @@ module Rainbows end mod.setup if mod.respond_to?(:setup) Const::RACK_DEFAULTS['rainbows.model'] = @use = model.to_sym - - Const::RACK_DEFAULTS['rack.multithread'] = case model.to_s - when /Thread/, "EventMachineDefer"; true - else false - end + Const::RACK_DEFAULTS['rack.multithread'] = !!(model.to_s =~ /Thread/) case @use when :Rev, :EventMachine, :NeverBlock |