diff options
Diffstat (limited to 'lib/rack/handler/mongrel.rb')
-rw-r--r-- | lib/rack/handler/mongrel.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/rack/handler/mongrel.rb b/lib/rack/handler/mongrel.rb index 7b448261..cd1af2de 100644 --- a/lib/rack/handler/mongrel.rb +++ b/lib/rack/handler/mongrel.rb @@ -7,8 +7,12 @@ module Rack module Handler class Mongrel < ::Mongrel::HttpHandler def self.run(app, options={}) - server = ::Mongrel::HttpServer.new(options[:Host] || '0.0.0.0', - options[:Port] || 8080) + server = ::Mongrel::HttpServer.new( + options[:Host] || '0.0.0.0', + options[:Port] || 8080, + options[:num_processors] || 950, + options[:throttle] || 0, + options[:timeout] || 60) # Acts like Rack::URLMap, utilizing Mongrel's own path finding methods. # Use is similar to #run, replacing the app argument with a hash of # { path=>app, ... } or an instance of Rack::URLMap. |