about summary refs log tree commit homepage
path: root/lib/unicorn/http_request.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-06-27 15:58:45 -0700
committerEric Wong <normalperson@yhbt.net>2009-06-29 04:04:27 -0700
commit14ce889cc12628405b0f6a1842b7e1ad09ca4b7b (patch)
tree2188c1bdb823209bd6bfaeeda249af74f99b7920 /lib/unicorn/http_request.rb
parent665717d9d339748447e26d3eb0e34c9f6c64ce73 (diff)
downloadunicorn-14ce889cc12628405b0f6a1842b7e1ad09ca4b7b.tar.gz
The complexity of making the object persistent isn't worth the
potential performance gain here.
Diffstat (limited to 'lib/unicorn/http_request.rb')
-rw-r--r--lib/unicorn/http_request.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb
index d9cb8b2..e25517b 100644
--- a/lib/unicorn/http_request.rb
+++ b/lib/unicorn/http_request.rb
@@ -27,7 +27,6 @@ module Unicorn
     }
 
     NULL_IO = StringIO.new(Z)
-    TEE = TeeInput.new
     DECHUNKER = ChunkedReader.new
     LOCALHOST = '127.0.0.1'.freeze
 
@@ -104,7 +103,7 @@ module Unicorn
           end
         end
 
-        inp = TEE.reopen(socket, length, body)
+        inp = TeeInput.new(socket, length, body)
         DEFAULTS[Const::STREAM_INPUT] ? inp : inp.consume
       else
         NULL_IO.closed? ? NULL_IO.reopen(Z) : NULL_IO