diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-10-14 18:26:42 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-10-14 18:26:42 -0700 |
commit | 0836409458e674d701f2be6c26aa85d441959562 (patch) | |
tree | efb0eff526d12948fa9e547d0fe57d2508875056 /lib/rainbows/http_server.rb | |
parent | b14f5bcec7d9864faed7fcb06028eafe89a4a722 (diff) | |
download | rainbows-0836409458e674d701f2be6c26aa85d441959562.tar.gz |
This allows applications to determine which concurrency model they're running under and possibly make adjustments accordingly. The standard "rack.multithread" isn't enough for some applications to determine what to do, especially when reentrancy is required/recommended.
Diffstat (limited to 'lib/rainbows/http_server.rb')
-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 0d9ef35..fc51ac3 100644 --- a/lib/rainbows/http_server.rb +++ b/lib/rainbows/http_server.rb @@ -31,7 +31,7 @@ module Rainbows Module === mod or raise ArgumentError, "concurrency model #{model.inspect} not supported" extend(mod) - @use = model + Const::RACK_DEFAULTS['rainbows.model'] = @use = model end def worker_connections(*args) |