# File lib/packet_mongrel.rb, line 69 def initialize(host, port, num_processors=950, x=0, y=nil) # Deal with Mongrel 1.0.1 or earlier, as well as later. @socket = nil @classifier = URIClassifier.new @host = host @port = port @workers = ThreadGroup.new if y @throttle = x @timeout = y || 60 else @timeout = x end @num_processors = num_processors #num_processors is pointless for evented.... @death_time = 60 self.class.const_set(:Instance,self) end