diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-11-15 14:57:49 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-11-15 15:29:33 -0800 |
commit | bda137d7be08bdac5d4fa361a4c4649dc10e457f (patch) | |
tree | 3186ea2c34dfcc99e27e86a14995c1a7a6155a2b /lib/rainbows/http_server.rb | |
parent | 47826ea75dd62b20f533dfd08f950b8cd4c4dd74 (diff) | |
download | rainbows-bda137d7be08bdac5d4fa361a4c4649dc10e457f.tar.gz |
This reverts commit e1dcadef6ca242e36e99aab19e3e040bf01070f9. This is fixed separately in Unicorn 0.95.0 (commit 560216c2fecfc5cf3489f749dc7a0221fd78eb26)
Diffstat (limited to 'lib/rainbows/http_server.rb')
-rw-r--r-- | lib/rainbows/http_server.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/rainbows/http_server.rb b/lib/rainbows/http_server.rb index a1ec4f6..c26285c 100644 --- a/lib/rainbows/http_server.rb +++ b/lib/rainbows/http_server.rb @@ -53,13 +53,7 @@ module Rainbows raise ArgumentError, "concurrency model #{model.inspect} not supported" extend(mod) Const::RACK_DEFAULTS['rainbows.model'] = @use = model.to_sym - - if /Thread/ =~ model.to_s - Const::RACK_DEFAULTS['rack.multithread'] = true - # autoload/require is not thread-safe - Unicorn.constants.each { |x| Unicorn.const_get(x) } - end - + Const::RACK_DEFAULTS['rack.multithread'] = !!(/Thread/ =~ model.to_s) case @use when :Rev, :EventMachine Const::RACK_DEFAULTS['rainbows.autochunk'] = true |