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/fiber/base.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/rainbows/fiber') diff --git a/lib/rainbows/fiber/base.rb b/lib/rainbows/fiber/base.rb index 129448c..995b4af 100644 --- a/lib/rainbows/fiber/base.rb +++ b/lib/rainbows/fiber/base.rb @@ -82,6 +82,7 @@ module Rainbows buf << (client.read_timeout or return) end + env[CLIENT_IO] = client env[RACK_INPUT] = 0 == hp.content_length ? HttpRequest::NULL_IO : TeeInput.new(client, env, hp, buf) env[REMOTE_ADDR] = remote_addr -- cgit v1.2.3-24-ge0c7