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
rainbows: set and use process-wide ENV["RACK_ENV"]
[rainbows.git]
/
t
/
t1000.ru
blob
4bb7348e9e01cf72bf138b267a607300d8365e60
1
use Rack::ContentLength
2
use Rack::ContentType
3
run lambda { |env|
4
sleep 1
5
if env['rack.multithread'] && env['rainbows.model'] == :ThreadPool
6
[ 200, {}, [ Thread.current.inspect << "\n" ] ]
7
else
8
raise "rack.multithread is not true"
9
end
10
}