about summary refs log tree commit homepage
path: root/lib/rainbows/actor_spawn.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-11-28 12:51:59 -0800
committerEric Wong <normalperson@yhbt.net>2009-11-29 12:34:54 -0800
commitc0187f8978919df981806b5b9830873ec0e3f990 (patch)
tree867f6062ce5ddd89c4ccc4693959b046b5c72544 /lib/rainbows/actor_spawn.rb
parent53624699c89c4529651153325b7e47696abb9788 (diff)
downloadrainbows-c0187f8978919df981806b5b9830873ec0e3f990.tar.gz
I so wish it used Fibers/green-threads underneath instead.
Diffstat (limited to 'lib/rainbows/actor_spawn.rb')
-rw-r--r--lib/rainbows/actor_spawn.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rainbows/actor_spawn.rb b/lib/rainbows/actor_spawn.rb
index 7603734..2662f9f 100644
--- a/lib/rainbows/actor_spawn.rb
+++ b/lib/rainbows/actor_spawn.rb
@@ -16,6 +16,7 @@ module Rainbows
     # for connections and doesn't die until the parent dies (or is
     # given a INT, QUIT, or TERM signal)
     def worker_loop(worker)
+      Const::RACK_DEFAULTS["rack.multithread"] = true # :(
       init_worker_process(worker)
       limit = worker_connections
       nr = 0