rainbows.git  about / heads / tags
Unicorn for sleepy apps and slow clients
blob 66643b6919f8fb02b54e8ffe4128eb4960910dc2 220 bytes (raw)
$ git show HEAD:t/t9000.ru	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
 
use Rack::ContentLength
use Rack::ContentType
use Rainbows::AppPool, :size => ENV['APP_POOL_SIZE'].to_i
class Sleeper
  def call(env)
    Rainbows.sleep(1)
    [ 200, {}, [ "#{object_id}\n" ] ]
  end
end
run Sleeper.new

git clone https://yhbt.net/rainbows.git