about summary refs log tree commit homepage
path: root/lib/rainbows/http_server.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-04 20:17:58 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-04 20:38:53 -0700
commite8eb252f64c94eb57532ef3de55d28e5d23e3cd8 (patch)
treecb7222112498789f2df7cd9f0cbc0ef7cf8a9466 /lib/rainbows/http_server.rb
parent9f11d1cec1975f4dcf35c68538243a44a629ed62 (diff)
downloadrainbows-e8eb252f64c94eb57532ef3de55d28e5d23e3cd8.tar.gz
Various concurrency models work and scale differently, pick
counts that make a reasonable amount of sense...
Diffstat (limited to 'lib/rainbows/http_server.rb')
-rw-r--r--lib/rainbows/http_server.rb2
1 files changed, 1 insertions, 1 deletions
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)