about summary refs log tree commit homepage
path: root/t/simple-http_RevThreadPool.ru
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-12-01 23:39:32 -0800
committerEric Wong <normalperson@yhbt.net>2009-12-02 00:23:02 -0800
commit154e7af0225a0375274991ee7bd1fc8ad22c1c37 (patch)
tree2274e7beaa114f88126573830d0bccf7df4c3904 /t/simple-http_RevThreadPool.ru
parentc50b69ddf0f1305bb39ed812d084f59db6dd9897 (diff)
downloadrainbows-154e7af0225a0375274991ee7bd1fc8ad22c1c37.tar.gz
This should be like RevThreadSpawn except with more predictable
performance (but higher memory usage under low load).
Diffstat (limited to 't/simple-http_RevThreadPool.ru')
-rw-r--r--t/simple-http_RevThreadPool.ru9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/simple-http_RevThreadPool.ru b/t/simple-http_RevThreadPool.ru
new file mode 100644
index 0000000..43dde1a
--- /dev/null
+++ b/t/simple-http_RevThreadPool.ru
@@ -0,0 +1,9 @@
+use Rack::ContentLength
+use Rack::ContentType
+run lambda { |env|
+  if env['rack.multithread'] && env['rainbows.model'] == :RevThreadPool
+    [ 200, {}, [ env.inspect << "\n" ] ]
+  else
+    raise "rack.multithread is false"
+  end
+}