about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-14 18:26:42 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-14 18:26:42 -0700
commit0836409458e674d701f2be6c26aa85d441959562 (patch)
treeefb0eff526d12948fa9e547d0fe57d2508875056
parentb14f5bcec7d9864faed7fcb06028eafe89a4a722 (diff)
downloadrainbows-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.
-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 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)