From d6be7785ee6abf35001a0e7b655a6f64b7c7733f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 26 Feb 2010 03:04:18 -0800 Subject: revactor/tee_input: sync w/ Unicorn::TeeInput struct-ification commit a5f4d11cdb9465b1ffa2892b3d84ee53b8962930 in unicorn.git switched all ivars to struct members for ease-of-hacking and object size. --- lib/rainbows/revactor/tee_input.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/rainbows/revactor') diff --git a/lib/rainbows/revactor/tee_input.rb b/lib/rainbows/revactor/tee_input.rb index 8fb4551..99d1f7d 100644 --- a/lib/rainbows/revactor/tee_input.rb +++ b/lib/rainbows/revactor/tee_input.rb @@ -22,11 +22,11 @@ module Rainbows def tee(length, dst) unless parser.body_eof? if parser.filter_body(dst, buf << socket.read).nil? - @tmp.write(dst) + tmp.write(dst) diff = dst.size - length if diff > 0 dst.replace(dst[0,length]) - @tmp.seek(-diff, IO::SEEK_CUR) + tmp.seek(-diff, IO::SEEK_CUR) end return dst end -- cgit v1.2.3-24-ge0c7