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
stream_response_epoll: remove hijack_prepare call
[rainbows.git]
/
t
/
rack-fiber_pool
/
app.ru
blob
e4f60a4075d6765e3bd5276316f4badc2d5778fc
1
require 'rack/fiber_pool'
2
use Rack::FiberPool
3
use Rack::ContentLength
4
use Rack::ContentType, 'text/plain'
5
run lambda { |env|
6
f = Fiber.current
7
EM.add_timer(3) { f.resume }
8
Fiber.yield
9
[ 200, {}, [ "#{f}\n" ] ]
10
}