repo.or.cz
/
rainbows.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Revert "http_server: cap timeout at 32-bit LONG_MAX seconds"
[rainbows.git]
/
t
/
t9100.ru
blob
ed9e1ee1d41355c892e08e99b9a818179a426a62
1
use Rack::ContentLength
2
use Rack::ContentType, 'text/plain'
3
use Rainbows::ThreadTimeout, :timeout => 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" ] ]
9
}