From e8eb252f64c94eb57532ef3de55d28e5d23e3cd8 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 4 Oct 2009 20:17:58 -0700 Subject: vary defaults for worker_connections Various concurrency models work and scale differently, pick counts that make a reasonable amount of sense... --- lib/rainbows/http_server.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rainbows/http_server.rb') diff --git a/lib/rainbows/http_server.rb b/lib/rainbows/http_server.rb index 8fdecb6..0d9ef35 100644 --- a/lib/rainbows/http_server.rb +++ b/lib/rainbows/http_server.rb @@ -15,9 +15,9 @@ module Rainbows def initialize(app, options) @@instance = self - @worker_connections = 1 rv = super(app, options) defined?(@use) or use(:Base) + @worker_connections ||= MODEL_WORKER_CONNECTIONS[@use] end def use(*args) -- cgit v1.2.3-24-ge0c7