Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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.
  • Loading branch information...
commit 0113de29108fb669a43d4d7f5528c77a2f96db57 1 parent cd22c59
authored September 02, 2011

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. 1  lib/unicorn/http_server.rb
1  lib/unicorn/http_server.rb
@@ -563,6 +563,7 @@ def init_worker_process(worker)
563 563
     self.timeout /= 2.0 # halve it for select()
564 564
     @config = nil
565 565
     build_app! unless preload_app
  566
+    @after_fork = @listener_opts = @orig_app = nil
566 567
   end
567 568
 
568 569
   def reopen_worker_logs(worker_nr)

0 notes on commit 0113de2

Please sign in to comment.
Something went wrong with that request. Please try again.