rainbows.git  about / heads / tags
Unicorn for sleepy apps and slow clients
blob 651334361fc4dc82c458374e2342195c47e1f6df 227 bytes (raw)
$ git show HEAD:t/simple-http_Epoll.ru	# shows this blob on the CLI

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

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