diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-04-29 05:45:44 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-04-29 05:45:44 +0000 |
commit | aff36865d5e738babdbf36f34fd0693b67bb3d90 (patch) | |
tree | 24bcb22e23dc7e7c587f34bba33dfcbee8c020fb /t/simple-http_XEpollThreadSpawn.ru | |
parent | 40cf3eb79054caa4b7d81120a736491aca8259eb (diff) | |
download | rainbows-aff36865d5e738babdbf36f34fd0693b67bb3d90.tar.gz |
Whee! This is going to be awesome.
Diffstat (limited to 't/simple-http_XEpollThreadSpawn.ru')
-rw-r--r-- | t/simple-http_XEpollThreadSpawn.ru | 10 |
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 +} |