diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-12-08 00:50:34 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-12-08 00:51:38 -0800 |
commit | 067b54ff7950084fc729df04a748e02361d46dc1 (patch) | |
tree | 5e31835fe70fbb8d976960123de83784f7803fa5 /lib/rainbows/http_server.rb | |
parent | d2aba3d27fcff72b4db9d3f164247923d1ebd244 (diff) | |
download | rainbows-067b54ff7950084fc729df04a748e02361d46dc1.tar.gz |
There's a good chunk of tests that fail with this, still. Worse, I haven't been able to figure out what's wrong since it looks like it would involve looking at C++ code...
Diffstat (limited to 'lib/rainbows/http_server.rb')
-rw-r--r-- | lib/rainbows/http_server.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/rainbows/http_server.rb b/lib/rainbows/http_server.rb index 8b9f220..c4f804a 100644 --- a/lib/rainbows/http_server.rb +++ b/lib/rainbows/http_server.rb @@ -61,7 +61,12 @@ module Rainbows end mod.setup if mod.respond_to?(:setup) Const::RACK_DEFAULTS['rainbows.model'] = @use = model.to_sym - Const::RACK_DEFAULTS['rack.multithread'] = !!(/Thread/ =~ model.to_s) + + Const::RACK_DEFAULTS['rack.multithread'] = case model.to_s + when /Thread/, "EventMachineDefer"; true + else false + end + case @use when :Rev, :EventMachine, :NeverBlock Const::RACK_DEFAULTS['rainbows.autochunk'] = true |