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
doc/comparison: add Web Sockets to comparison
[rainbows.git]
/
t
/
t9000.ru
blob
4ca36c1d555b1e7abdb5cf62b34a9ac80edcc6ed
1
use Rack::ContentLength
2
use Rack::ContentType
3
use Rainbows::AppPool, :size => ENV['APP_POOL_SIZE'].to_i
4
class Sleeper
5
def call(env)
6
(case env['rainbows.model']
7
when :FiberPool, :FiberSpawn
8
Rainbows::Fiber
9
when :Revactor
10
Actor
11
else
12
Kernel
13
end).sleep(1)
14
[ 200, {}, [ "#{object_id}\n" ] ]
15
end
16
end
17
run Sleeper.new