Class: Mongrel::HttpServer
- Inherits:
-
Object
- Object
- Mongrel::HttpServer
- Defined in:
- lib/style/handler/mongrel.rb
Instance Method Summary collapse
-
#initialize(host, port, num_processors = 950, throttle = 0, timeout = 60) ⇒ HttpServer
constructor
Keep the interface the same, but ignore the host and port and use the socket provided by style.
Constructor Details
#initialize(host, port, num_processors = 950, throttle = 0, timeout = 60) ⇒ HttpServer
Keep the interface the same, but ignore the host and port and use the socket provided by style
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/style/handler/mongrel.rb', line 8 def initialize(host, port, num_processors=950, throttle=0, timeout=60) tries = 0 @socket = $STYLE_SOCKET @classifier = URIClassifier.new @host = host @port = port @workers = ThreadGroup.new @throttle = throttle @num_processors = num_processors @timeout = timeout end |