2015-02-16 17:56:21 -05:00
|
|
|
require_dependency 'scheduler/defer'
|
|
|
|
|
|
|
|
if defined? Unicorn::HttpServer
|
|
|
|
ObjectSpace.each_object(Unicorn::HttpServer) do |s|
|
|
|
|
s.extend(Scheduler::Defer::Unicorn)
|
|
|
|
end
|
|
|
|
|
2015-04-08 01:24:17 -04:00
|
|
|
if ENV['UNICORN_ENABLE_OOBGC'] == '1' && RUBY_VERSION < "2.2.0"
|
2015-02-16 17:56:21 -05:00
|
|
|
require 'middleware/unicorn_oobgc'
|
|
|
|
Middleware::UnicornOobgc.init
|
|
|
|
end
|
2013-11-12 23:28:39 -05:00
|
|
|
end
|