From 14ce889cc12628405b0f6a1842b7e1ad09ca4b7b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 27 Jun 2009 15:58:45 -0700 Subject: Make TeeInput easier to use The complexity of making the object persistent isn't worth the potential performance gain here. --- lib/unicorn.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/unicorn.rb') diff --git a/lib/unicorn.rb b/lib/unicorn.rb index 13da564..343f762 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -1,4 +1,5 @@ require 'fcntl' +require 'tempfile' require 'unicorn/socket_helper' autoload :Rack, 'rack' @@ -471,7 +472,6 @@ module Unicorn worker.tempfile.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) @after_fork.call(self, worker) # can drop perms @timeout /= 2.0 # halve it for select() - HttpRequest::TEE.setup build_app! unless @preload_app end -- cgit v1.2.3-24-ge0c7