Add support for the ThreadSpawn concurrency model
commit9f11d1cec1975f4dcf35c68538243a44a629ed62
authorEric Wong <normalperson@yhbt.net>
Mon, 5 Oct 2009 01:39:19 +0000 (4 18:39 -0700)
committerEric Wong <normalperson@yhbt.net>
Mon, 5 Oct 2009 02:18:23 +0000 (4 19:18 -0700)
tree45f4bb93272674cbe64b99ae5eb79801dc93d5be
parent903766ba0d278cb55d08e072c4c96c1d7f0dee8d
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
lib/rainbows/thread_spawn.rb [new file with mode: 0644]
t/t2000-thread-spawn-basic.sh [new file with mode: 0755]