From 9f11d1cec1975f4dcf35c68538243a44a629ed62 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 4 Oct 2009 18:39:19 -0700 Subject: Add support for the ThreadSpawn concurrency model This is somewhat like the original model found in Mongrel, except we refuse to accept() connections unless we have slots available. Even though we support multiple listen sockets, we only accept() synchronously to simplify processing and to avoid having to synchronize ThreadGroup management. --- lib/rainbows.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/rainbows.rb') diff --git a/lib/rainbows.rb b/lib/rainbows.rb index 611c0ec..b2c315d 100644 --- a/lib/rainbows.rb +++ b/lib/rainbows.rb @@ -15,6 +15,7 @@ module Rainbows autoload :Revactor, 'rainbows/revactor' autoload :ThreadPool, 'rainbows/thread_pool' + autoload :ThreadSpawn, 'rainbows/thread_spawn' class << self def run(app, options = {}) -- cgit v1.2.3-24-ge0c7