From 2bb3f8fd600bd0aabe5e4d7c3d1f99d745fc8f49 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 9 Dec 2010 17:14:04 -0800 Subject: respect client_body_buffer_size in Unicorn 3.1.0 This is only needed for concurrency options that do not use TeeInput, since TeeInput automatically handles this for us. --- lib/rainbows/ev_core/cap_input.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/rainbows/ev_core') diff --git a/lib/rainbows/ev_core/cap_input.rb b/lib/rainbows/ev_core/cap_input.rb index a2eecab..4865da4 100644 --- a/lib/rainbows/ev_core/cap_input.rb +++ b/lib/rainbows/ev_core/cap_input.rb @@ -1,8 +1,9 @@ # -*- encoding: binary -*- # :enddoc: class Rainbows::EvCore::CapInput - def initialize(io, client) - @io, @client, @bytes_left = io, client, Rainbows.max_bytes + + def initialize(io, client, max) + @io, @client, @bytes_left = io, client, max end def <<(buf) -- cgit v1.2.3-24-ge0c7