diff options
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 +} |