rainbows.git  about / heads / tags
Unicorn for sleepy apps and slow clients
blob ec55fe9a0dff2d3915a9625f23d945794540946e 214 bytes (raw)
$ git show v3.0.0:lib/rainbows/http_parser.rb	# shows this blob on the CLI

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
 
# -*- encoding: binary -*-
# :enddoc:
# avoid modifying Unicorn::HttpParser
class Rainbows::HttpParser < Unicorn::HttpParser
  def self.quit
    alias_method :next?, :never!
  end

  def never!
    false
  end
end

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