1 # -*- encoding: binary -*-
5 class HttpServer < ::Unicorn::HttpServer
8 attr_accessor :worker_connections
11 def initialize(app, options)
14 self.init_listeners = options[:listeners] ? options[:listeners].dup : []
15 self.config = Configurator.new(options.merge(:use_defaults => true))
16 self.listener_opts = {}
17 config.commit!(self, :skip => [:listeners, :pid])
20 self.use = Rainbows.const_get(:ThreadPool)
21 defined?(@worker_connections) or
22 @worker_connections = 4
28 (class << self; self; end).instance_eval { include model }