diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-04-19 01:04:47 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-04-19 01:23:04 -0700 |
commit | 72fdcf1c39c2a143d7abd8d2609e92311edff341 (patch) | |
tree | 2fa0c957811f6a1c5ee1deb68f351e9399c44f0c /t/rack-fiber_pool | |
parent | 98622a1c291277ff124a586929c675e9ae67692e (diff) | |
download | rainbows-72fdcf1c39c2a143d7abd8d2609e92311edff341.tar.gz |
Although advertised as being Thin-only, the rack-fiber_pool gem works with our EventMachine concurrency model as well. Note that it's impossible to expose the streaming "rack.input" behavior of the native FiberSpawn/FiberPool models via middleware, but most people don't need streaming a "rack.input" See http://github.com/mperham/rack-fiber_pool for more details on the rack-fiber_pool gem.
Diffstat (limited to 't/rack-fiber_pool')
-rw-r--r-- | t/rack-fiber_pool/app.ru | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/rack-fiber_pool/app.ru b/t/rack-fiber_pool/app.ru new file mode 100644 index 0000000..a4777ca --- /dev/null +++ b/t/rack-fiber_pool/app.ru @@ -0,0 +1,5 @@ +require 'rack/fiber_pool' +use Rack::FiberPool +use Rack::ContentLength +use Rack::ContentType, 'text/plain' +run lambda { |env| [ 200, {}, [ "#{Fiber.current}\n" ] ] } |