about summary refs log tree commit homepage
path: root/t/simple-http_RevFiberSpawn.ru
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-12-22 00:32:04 -0800
committerEric Wong <normalperson@yhbt.net>2009-12-22 00:38:04 -0800
commit19960488441651d689259071fa1be4f6957d681b (patch)
tree80c5752ad4484361c74a081d06fb6e43632d860a /t/simple-http_RevFiberSpawn.ru
parentee7fe220ccbc991e1e7cbe982caf48e3303274c7 (diff)
downloadrainbows-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 't/simple-http_RevFiberSpawn.ru')
-rw-r--r--t/simple-http_RevFiberSpawn.ru10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/simple-http_RevFiberSpawn.ru b/t/simple-http_RevFiberSpawn.ru
new file mode 100644
index 0000000..ea9b0e3
--- /dev/null
+++ b/t/simple-http_RevFiberSpawn.ru
@@ -0,0 +1,10 @@
+use Rack::ContentLength
+use Rack::ContentType
+run lambda { |env|
+  if env['rack.multithread'] == false &&
+    env['rainbows.model'] == :RevFiberSpawn
+    [ 200, {}, [ Thread.current.inspect << "\n" ] ]
+  else
+    raise env.inspect
+  end
+}