From 0113de29108fb669a43d4d7f5528c77a2f96db57 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 2 Sep 2011 16:17:57 -0700 Subject: http_server: a few more things eligible for GC in worker There is no need to keep extra hashes or Proc objects around in the heap. --- lib/unicorn/http_server.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/unicorn/http_server.rb b/lib/unicorn/http_server.rb index 1d51001..95f0e6e 100644 --- a/lib/unicorn/http_server.rb +++ b/lib/unicorn/http_server.rb @@ -563,6 +563,7 @@ class Unicorn::HttpServer self.timeout /= 2.0 # halve it for select() @config = nil build_app! unless preload_app + @after_fork = @listener_opts = @orig_app = nil end def reopen_worker_logs(worker_nr) -- cgit v1.2.3-24-ge0c7