diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-06-27 09:15:24 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-06-27 09:15:24 +0000 |
commit | 0e9d8ac759f7c5d783f055df0fb5d4f08c68db71 (patch) | |
tree | 131a2843478b0d70462e0834d46fa916e428ad41 | |
parent | 8c1e3da65d7a709c6578652fa57e5ca0e7a9a459 (diff) | |
download | rainbows-0e9d8ac759f7c5d783f055df0fb5d4f08c68db71.tar.gz |
It hasn't been used in a while, but we kept it for Zbatery version compatibility.
-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 |