diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-11-29 16:19:02 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-11-29 17:50:54 -0800 |
commit | 16c0391066b38e5f3ea834b59632645890519574 (patch) | |
tree | 0f4475073323b0bc5c032fe21ae1052e57def75b /t/simple-http_NeverBlock.ru | |
parent | f050fcb9e5da4adf3b5b4f65c0590360113e78fd (diff) | |
download | rainbows-16c0391066b38e5f3ea834b59632645890519574.tar.gz |
Diffstat (limited to 't/simple-http_NeverBlock.ru')
-rw-r--r-- | t/simple-http_NeverBlock.ru | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/t/simple-http_NeverBlock.ru b/t/simple-http_NeverBlock.ru new file mode 100644 index 0000000..31ee561 --- /dev/null +++ b/t/simple-http_NeverBlock.ru @@ -0,0 +1,11 @@ +use Rack::ContentLength +use Rack::ContentType +run lambda { |env| + if env['rack.multithread'] == false && + EM.reactor_running? && + env['rainbows.model'] == :NeverBlock + [ 200, {}, [ Thread.current.inspect << "\n" ] ] + else + raise env.inspect + end +} |