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
rev: add sendfile support
[rainbows.git]
/
t
/
simple-http_NeverBlock.ru
blob
31ee561ef1267ba539f34d8a4b731a975b36147f
1
use Rack::ContentLength
2
use Rack::ContentType
3
run lambda { |env|
4
if env['rack.multithread'] == false &&
5
EM.reactor_running? &&
6
env['rainbows.model'] == :NeverBlock
7
[ 200, {}, [ Thread.current.inspect << "\n" ] ]
8
else
9
raise env.inspect
10
end
11
}