From 9ccced22c38c30e776edc5c2513194623b42a7a9 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 25 Mar 2009 16:25:45 -0700 Subject: Ensure Tempfiles are unlinked after every request Otherwise we bloat TMPDIR and run the host out of space, oops! --- lib/unicorn/http_request.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb index 411c56c..ee407ab 100644 --- a/lib/unicorn/http_request.rb +++ b/lib/unicorn/http_request.rb @@ -25,6 +25,7 @@ module Unicorn @parser.reset @params.clear @body.close rescue nil + @body.close! rescue nil @body = nil end -- cgit v1.2.3-24-ge0c7