diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-05-03 17:56:00 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-05-03 17:56:00 -0700 |
commit | de3bcfe3ba9402bd510f7414df1763b6b99dae47 (patch) | |
tree | 180526ea73118ed9e3b0cc606684288991875b72 /lib/rainbows/base.rb | |
parent | 54cae80e543a6f4ca6456fe07b88aba867d215a6 (diff) | |
download | rainbows-de3bcfe3ba9402bd510f7414df1763b6b99dae47.tar.gz |
WAvoid mucking with Unicorn::TeeInput, since other apps may depend on that class, so we subclass it as Rainbows::TeeInput and modify as necessary in worker processes. For Revactor, remove the special-cased Rainbows::Revactor::TeeInput class and instead emulate readpartial for Revactor sockets instead.
Diffstat (limited to 'lib/rainbows/base.rb')
-rw-r--r-- | lib/rainbows/base.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rainbows/base.rb b/lib/rainbows/base.rb index 864b847..faec951 100644 --- a/lib/rainbows/base.rb +++ b/lib/rainbows/base.rb @@ -68,8 +68,7 @@ module Rainbows env[CLIENT_IO] = client env[RACK_INPUT] = 0 == hp.content_length ? - HttpRequest::NULL_IO : - Unicorn::TeeInput.new(client, env, hp, buf) + HttpRequest::NULL_IO : TeeInput.new(client, env, hp, buf) env[REMOTE_ADDR] = remote_addr status, headers, body = app.call(env.update(RACK_DEFAULTS)) |