diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-12-22 00:32:04 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-12-22 00:38:04 -0800 |
commit | 19960488441651d689259071fa1be4f6957d681b (patch) | |
tree | 80c5752ad4484361c74a081d06fb6e43632d860a /lib/rainbows/dev_fd_response.rb | |
parent | ee7fe220ccbc991e1e7cbe982caf48e3303274c7 (diff) | |
download | rainbows-19960488441651d689259071fa1be4f6957d681b.tar.gz |
This is like the traditional FiberSpawn, but more scalable (but not necessarily faster) as it can use epoll or kqueue.
Diffstat (limited to 'lib/rainbows/dev_fd_response.rb')
-rw-r--r-- | lib/rainbows/dev_fd_response.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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, ... |