diff options
Diffstat (limited to 'lib/rainbows')
-rw-r--r-- | lib/rainbows/base.rb | 2 | ||||
-rw-r--r-- | lib/rainbows/coolio_fiber_spawn.rb | 2 | ||||
-rw-r--r-- | lib/rainbows/response.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/rainbows/base.rb b/lib/rainbows/base.rb index e614ccf..d1c5c08 100644 --- a/lib/rainbows/base.rb +++ b/lib/rainbows/base.rb @@ -11,7 +11,7 @@ module Rainbows::Base # this method is called by all current concurrency models def init_worker_process(worker) # :nodoc: super(worker) - Rainbows::Response.setup(self.class) + Rainbows::Response.setup Rainbows::MaxBody.setup Rainbows.worker = worker diff --git a/lib/rainbows/coolio_fiber_spawn.rb b/lib/rainbows/coolio_fiber_spawn.rb index 88583f8..8527656 100644 --- a/lib/rainbows/coolio_fiber_spawn.rb +++ b/lib/rainbows/coolio_fiber_spawn.rb @@ -18,7 +18,7 @@ module Rainbows::CoolioFiberSpawn include Rainbows::Fiber::Coolio def worker_loop(worker) # :nodoc: - Rainbows::Response.setup(Server) + Rainbows::Response.setup init_worker_process(worker) Server.const_set(:MAX, @worker_connections) Rainbows::Fiber::Base.setup(Server, nil) diff --git a/lib/rainbows/response.rb b/lib/rainbows/response.rb index 04b12c4..f8b0831 100644 --- a/lib/rainbows/response.rb +++ b/lib/rainbows/response.rb @@ -13,7 +13,7 @@ module Rainbows::Response class F < File; end # called after forking - def self.setup(klass) + def self.setup Kgio.accept_class = Rainbows::Client 0 == Rainbows.server.keepalive_timeout and Rainbows::HttpParser.keepalive_requests = 0 |