about summary refs log tree commit homepage
path: root/t/simple-http_XEpoll.ru
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-02-04 18:58:26 -0800
committerEric Wong <normalperson@yhbt.net>2011-02-04 18:58:26 -0800
commit8e2e8adda8adbadee8ab31cde700b7e486b1154c (patch)
treeb4fadc909c9636486ee8e1bebd735786063b9af7 /t/simple-http_XEpoll.ru
parent0f4f015737297ac5245d0be9ee83553770ade0a9 (diff)
downloadrainbows-8e2e8adda8adbadee8ab31cde700b7e486b1154c.tar.gz
It's too long especially since XEpollThreadPool is planned :>
Diffstat (limited to 't/simple-http_XEpoll.ru')
-rw-r--r--t/simple-http_XEpoll.ru9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/simple-http_XEpoll.ru b/t/simple-http_XEpoll.ru
new file mode 100644
index 0000000..518099b
--- /dev/null
+++ b/t/simple-http_XEpoll.ru
@@ -0,0 +1,9 @@
+use Rack::ContentLength
+use Rack::ContentType
+run lambda { |env|
+  if env['rack.multithread'] == false && env['rainbows.model'] == :XEpoll
+    [ 200, {}, [ Thread.current.inspect << "\n" ] ]
+  else
+    raise env.inspect
+  end
+}