rainbows.git  about / heads / tags
Unicorn for sleepy apps and slow clients
blob aa1accb3188814d092f7125648a997a33a01ad57 253 bytes (raw)
$ git show v0.3.0:t/t2000.ru	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
 
use Rack::ContentLength
use Rack::ContentType
run lambda { |env|
  sleep 1
  if env['rack.multithread'] && env['rainbows.model'] == :ThreadSpawn
    [ 200, {}, [ Thread.current.inspect << "\n" ] ]
  else
    raise "rack.multithread is not true"
  end
}

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