diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rainbows/const.rb | 5 | ||||
-rw-r--r-- | lib/rainbows/thread_pool.rb | 1 | ||||
-rw-r--r-- | lib/rainbows/thread_spawn.rb | 1 |
3 files changed, 2 insertions, 5 deletions
diff --git a/lib/rainbows/const.rb b/lib/rainbows/const.rb index 1b5c3a8..648d90e 100644 --- a/lib/rainbows/const.rb +++ b/lib/rainbows/const.rb @@ -8,11 +8,6 @@ module Rainbows include Unicorn::Const RACK_DEFAULTS = ::Unicorn::HttpRequest::DEFAULTS.merge({ - - # we need to observe many of the rules for thread-safety even - # with Revactor or Rev, so we're considered multithread-ed even - # when we're not technically... - "rack.multithread" => true, "SERVER_SOFTWARE" => "Rainbows! #{RAINBOWS_VERSION}", }) diff --git a/lib/rainbows/thread_pool.rb b/lib/rainbows/thread_pool.rb index ba85051..50d0322 100644 --- a/lib/rainbows/thread_pool.rb +++ b/lib/rainbows/thread_pool.rb @@ -20,6 +20,7 @@ module Rainbows def worker_loop(worker) init_worker_process(worker) + RACK_DEFAULTS["rack.multithread"] = true pool = (1..worker_connections).map { new_worker_thread } m = 0 diff --git a/lib/rainbows/thread_spawn.rb b/lib/rainbows/thread_spawn.rb index 05068fc..f14ed1c 100644 --- a/lib/rainbows/thread_spawn.rb +++ b/lib/rainbows/thread_spawn.rb @@ -15,6 +15,7 @@ module Rainbows def worker_loop(worker) init_worker_process(worker) + RACK_DEFAULTS["rack.multithread"] = true threads = ThreadGroup.new alive = worker.tmp m = 0 |