diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-04 20:17:58 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-04 20:38:53 -0700 |
commit | e8eb252f64c94eb57532ef3de55d28e5d23e3cd8 (patch) | |
tree | cb7222112498789f2df7cd9f0cbc0ef7cf8a9466 /lib/rainbows | |
parent | 9f11d1cec1975f4dcf35c68538243a44a629ed62 (diff) | |
download | rainbows-e8eb252f64c94eb57532ef3de55d28e5d23e3cd8.tar.gz |
Various concurrency models work and scale differently, pick counts that make a reasonable amount of sense...
Diffstat (limited to 'lib/rainbows')
-rw-r--r-- | lib/rainbows/http_server.rb | 2 |
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) |