Permalink
Browse files

Pass more options to mongrel

  • Loading branch information...
1 parent 18cbfc5 commit 3d000c5690715be1f1424ce70b08a702c8528d03 @manveru manveru committed Sep 8, 2009
Showing with 6 additions and 2 deletions.
  1. +6 −2 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.

0 comments on commit 3d000c5

Please sign in to comment.