diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-06-27 15:58:45 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-06-29 04:04:27 -0700 |
commit | 14ce889cc12628405b0f6a1842b7e1ad09ca4b7b (patch) | |
tree | 2188c1bdb823209bd6bfaeeda249af74f99b7920 /lib/unicorn/http_request.rb | |
parent | 665717d9d339748447e26d3eb0e34c9f6c64ce73 (diff) | |
download | unicorn-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.rb | 3 |
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 |