event_machine: protect IO#close from EBADF
[rainbows.git] / t / t9000.ru
blob66643b6919f8fb02b54e8ffe4128eb4960910dc2
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     Rainbows.sleep(1)
7     [ 200, {}, [ "#{object_id}\n" ] ]
8   end
9 end
10 run Sleeper.new