about summary refs log tree commit homepage
path: root/t/simple-http_XEpollThreadSpawn.ru
diff options
context:
space:
mode:
Diffstat (limited to 't/simple-http_XEpollThreadSpawn.ru')
-rw-r--r--t/simple-http_XEpollThreadSpawn.ru10
1 files changed, 10 insertions, 0 deletions
diff --git a/t/simple-http_XEpollThreadSpawn.ru b/t/simple-http_XEpollThreadSpawn.ru
new file mode 100644
index 0000000..e89fccc
--- /dev/null
+++ b/t/simple-http_XEpollThreadSpawn.ru
@@ -0,0 +1,10 @@
+use Rack::ContentLength
+use Rack::ContentType
+run lambda { |env|
+  if env['rack.multithread'] == true &&
+    env['rainbows.model'] == :XEpollThreadSpawn
+    [ 200, {}, [ Thread.current.inspect << "\n" ] ]
+  else
+    raise env.inspect
+  end
+}