diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-12-08 18:35:27 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-12-08 18:35:27 -0800 |
commit | 6b750f5f952963009a2e6e8702fc8f3d8adc94ea (patch) | |
tree | 3debc215a179f416883aae3c02fd4ea4a4b5a322 /lib/rainbows/revactor.rb | |
parent | 10d96a76a1ea4431dd10ba181d747169c22c1cec (diff) | |
download | rainbows-6b750f5f952963009a2e6e8702fc8f3d8adc94ea.tar.gz |
This was completely overlooked for the Rainbows 2.0.x releases.
Diffstat (limited to 'lib/rainbows/revactor.rb')
-rw-r--r-- | lib/rainbows/revactor.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/rainbows/revactor.rb b/lib/rainbows/revactor.rb index 51f6c1f..a181df1 100644 --- a/lib/rainbows/revactor.rb +++ b/lib/rainbows/revactor.rb @@ -53,7 +53,7 @@ module Rainbows::Revactor env[CLIENT_IO] = client env[RACK_INPUT] = 0 == hp.content_length ? - NULL_IO : Unicorn::TeeInput.new(ts = TeeSocket.new(client), hp) + NULL_IO : IC.new(ts = TeeSocket.new(client), hp) env[REMOTE_ADDR] = remote_addr status, headers, body = app.call(env.update(RACK_DEFAULTS)) @@ -87,6 +87,7 @@ module Rainbows::Revactor init_worker_process(worker) require 'rainbows/revactor/body' self.class.__send__(:include, Rainbows::Revactor::Body) + self.class.const_set(:IC, Unicorn::HttpRequest.input_class) RD_ARGS[:timeout] = G.kato if G.kato > 0 nr = 0 limit = worker_connections |