about summary refs log tree commit homepage
path: root/t/simple-http_Epoll.ru
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-01-19 15:06:10 -0800
committerEric Wong <normalperson@yhbt.net>2011-01-19 15:06:27 -0800
commit9424b13255a238dfa44952ebeb07bea3acee999c (patch)
tree9a517e9b22a3cc73c9ad16c9288eedf09ac18b8a /t/simple-http_Epoll.ru
parent7a04133c1ab57923cac8a9de04b00bfe89bcce2d (diff)
downloadrainbows-9424b13255a238dfa44952ebeb07bea3acee999c.tar.gz
Coolio and EventMachine only use level-triggered epoll,
but being Rainbows!, we live on the EDGE!
Diffstat (limited to 't/simple-http_Epoll.ru')
-rw-r--r--t/simple-http_Epoll.ru9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/simple-http_Epoll.ru b/t/simple-http_Epoll.ru
new file mode 100644
index 0000000..6513343
--- /dev/null
+++ b/t/simple-http_Epoll.ru
@@ -0,0 +1,9 @@
+use Rack::ContentLength
+use Rack::ContentType
+run lambda { |env|
+  if env['rack.multithread'] == false && env['rainbows.model'] == :Epoll
+    [ 200, {}, [ Thread.current.inspect << "\n" ] ]
+  else
+    raise env.inspect
+  end
+}