repo.or.cz
/
unicorn.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
doc: various updates and disclaimers
[unicorn.git]
/
t
/
heartbeat-timeout.ru
blob
3eeb5d641173eb637e44b6069109321c9ff84300
1
use Rack::ContentLength
2
headers = { 'content-type' => 'text/plain' }
3
run lambda { |env|
4
case env['PATH_INFO']
5
when "/block-forever"
6
Process.kill(:STOP, $$)
7
sleep # in case STOP signal is not received in time
8
[ 500, headers, [ "Should never get here\n" ] ]
9
else
10
[ 200, headers, [ "#$$" ] ]
11
end
12
}