Method: Unicorn::OobGC#process_client

Defined in:
lib/unicorn/oob_gc.rb

#process_client(*args) ⇒ Object

:stopdoc:



68
69
70
71
72
73
74
75
76
77
78
# File 'lib/unicorn/oob_gc.rb', line 68

def process_client(*args)
  super(*args) # Unicorn::HttpServer#process_client
  env = instance_variable_get(:@request).env
  if OOBGC_PATH =~ env['PATH_INFO'] && ((@@nr -= 1) <= 0)
    @@nr = OOBGC_INTERVAL
    env.clear
    disabled = GC.enable
    GC.start
    GC.disable if disabled
  end
end