coolio+xepoll_thread*: use shutdown() for keepalive timeout
[rainbows.git] / t / t9101.ru
blobee20085f9517700bbca1ca43bd0802486d947fcc
1 use Rack::ContentLength
2 use Rack::ContentType, 'text/plain'
3 use Rainbows::ThreadTimeout, :timeout => 1, :threshold => -1
4 run lambda { |env|
5   if env["PATH_INFO"] =~ %r{/([\d\.]+)\z}
6     Rainbows.sleep($1.to_f)
7   end
8   [ 200, [], [ "HI\n" ] ]