From 42fbb5d3a6c6488c2015bd81f1a00f1873cfb819 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 11 Dec 2009 02:59:32 -0800 Subject: env["hack.io"] for Fiber*, Revactor, Thread* models This exposes a client IO object directly to the underlying application. --- lib/rainbows/base.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/rainbows/base.rb') diff --git a/lib/rainbows/base.rb b/lib/rainbows/base.rb index 424b43b..a735b82 100644 --- a/lib/rainbows/base.rb +++ b/lib/rainbows/base.rb @@ -43,6 +43,7 @@ module Rainbows buf << client.readpartial(CHUNK_SIZE) end + env[CLIENT_IO] = client env[RACK_INPUT] = 0 == hp.content_length ? HttpRequest::NULL_IO : Unicorn::TeeInput.new(client, env, hp, buf) -- cgit v1.2.3-24-ge0c7