From e21939d776673b2f8887adf7a5c64812b7d2e98e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 30 Dec 2010 08:33:15 +0000 Subject: globally refactor Range handling for responses Rack::Utils::HeaderHash is still very expensive in Rack 1.2, especially for simple things that we want to run as fast as possible with minimal interference. HeaderHash is unnecessary for most requests that do not send Content-Range in responses. --- lib/rainbows/base.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/rainbows/base.rb') diff --git a/lib/rainbows/base.rb b/lib/rainbows/base.rb index bf9ef87..5d56063 100644 --- a/lib/rainbows/base.rb +++ b/lib/rainbows/base.rb @@ -6,9 +6,7 @@ # not intended for production use, as keepalive with a pure prefork # concurrency model is extremely expensive. module Rainbows::Base - # :stopdoc: - include Rainbows::ProcessClient # shortcuts... G = Rainbows::G @@ -34,6 +32,10 @@ module Rainbows::Base logger.info "Rainbows! #@use worker_connections=#@worker_connections" end + def process_client(client) + client.process_loop + end + def self.included(klass) # :nodoc: klass.const_set :LISTENERS, Rainbows::HttpServer::LISTENERS klass.const_set :G, Rainbows::G -- cgit v1.2.3-24-ge0c7