rainbows.git  about / heads / tags
Unicorn for sleepy apps and slow clients
blob 4bb7348e9e01cf72bf138b267a607300d8365e60 252 bytes (raw)
$ git show v0.3.0:t/t1000.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'] == :ThreadPool
    [ 200, {}, [ Thread.current.inspect << "\n" ] ]
  else
    raise "rack.multithread is not true"
  end
}

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