From 19960488441651d689259071fa1be4f6957d681b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 22 Dec 2009 00:32:04 -0800 Subject: new RevFiberSpawn concurrency model This is like the traditional FiberSpawn, but more scalable (but not necessarily faster) as it can use epoll or kqueue. --- lib/rainbows/dev_fd_response.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rainbows/dev_fd_response.rb') diff --git a/lib/rainbows/dev_fd_response.rb b/lib/rainbows/dev_fd_response.rb index 9ad326c..bab35bc 100644 --- a/lib/rainbows/dev_fd_response.rb +++ b/lib/rainbows/dev_fd_response.rb @@ -39,7 +39,7 @@ module Rainbows # we need to make sure our pipe output is Fiber-compatible case env["rainbows.model"] - when :FiberSpawn, :FiberPool + when :FiberSpawn, :FiberPool, :RevFiberSpawn return [ status, headers.to_hash, Fiber::IO.new(io,::Fiber.current) ] end else # unlikely, char/block device file, directory, ... -- cgit v1.2.3-24-ge0c7