Skip to content

Commit

Permalink
http_server: a few more things eligible for GC in worker
Browse files Browse the repository at this point in the history
There is no need to keep extra hashes or Proc objects around in
the heap.
  • Loading branch information
Eric Wong committed Sep 3, 2011
1 parent cd22c59 commit 0113de2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/unicorn/http_server.rb
Expand Up @@ -563,6 +563,7 @@ def init_worker_process(worker)
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)
Expand Down

0 comments on commit 0113de2

Please sign in to comment.