From 32d3b1f052810eb15362d001d1501be0e2da88d8 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 28 Aug 2010 06:50:51 +0000 Subject: "keepalive_timeout 0" (really) disables keepalive Although this behavior is mentioned on the documentation, this was broken under EventMachine, Rev*, and Revactor. Furthermore, we set the "Connection: close" header to allow the client to optimize is handling of non-keepalive connections. --- lib/rainbows/response.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/rainbows/response.rb') diff --git a/lib/rainbows/response.rb b/lib/rainbows/response.rb index 3e196d1..ac09d6c 100644 --- a/lib/rainbows/response.rb +++ b/lib/rainbows/response.rb @@ -34,6 +34,7 @@ module Rainbows::Response # called after forking def self.setup(klass) + Rainbows::G.kato == 0 and KEEP_ALIVE.replace(CLOSE) range_class = body_class = klass case Rainbows::Const::RACK_DEFAULTS['rainbows.model'] when :WriterThreadSpawn -- cgit v1.2.3-24-ge0c7