rainbows.git  about / heads / tags
Unicorn for sleepy apps and slow clients
blob 9b9c56a039d09cca870df6ba94f9e8645b55b6a1 261 bytes (raw)
$ git show v0.3.0:t/t3000.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|
  Actor.sleep 1
  if env['rack.multithread'] == false && env['rainbows.model'] == :Revactor
    [ 200, {}, [ Thread.current.inspect << "\n" ] ]
  else
    raise "rack.multithread is true"
  end
}

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