From 0e9d8ac759f7c5d783f055df0fb5d4f08c68db71 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 27 Jun 2011 09:15:24 +0000 Subject: remove unused arg in Rainbows::Response.setup It hasn't been used in a while, but we kept it for Zbatery version compatibility. --- lib/rainbows/base.rb | 2 +- lib/rainbows/coolio_fiber_spawn.rb | 2 +- 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 -- cgit v1.2.3-24-ge0c7