diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-02-26 03:04:18 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-02-26 03:04:18 -0800 |
commit | d6be7785ee6abf35001a0e7b655a6f64b7c7733f (patch) | |
tree | f680a0933e854c6d5fdc9cbcfa44f14e63be4ed0 | |
parent | a5064bc0bb549ca60e3e4d5f1a912bafa46c7f5f (diff) | |
download | rainbows-d6be7785ee6abf35001a0e7b655a6f64b7c7733f.tar.gz |
commit a5f4d11cdb9465b1ffa2892b3d84ee53b8962930 in unicorn.git switched all ivars to struct members for ease-of-hacking and object size.
-rw-r--r-- | lib/rainbows/revactor/tee_input.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |