Sha256: 24e4b889b9da2b4f693da0860aa84c3f1a28ed8b46134b124df98ca4a7cce201

Contents?: true

Size: 442 Bytes

Versions: 68

Compression:

Stored size: 442 Bytes

Contents

#\-E none
require 'unicorn/oob_gc'
use Rack::ContentLength
use Rack::ContentType, "text/plain"
use Unicorn::OobGC
$gc_started = false

# Mock GC.start
def GC.start
  ObjectSpace.each_object(Kgio::Socket) do |x|
    x.closed? or abort "not closed #{x}"
  end
  $gc_started = true
end
run lambda { |env|
  if "/gc_reset" == env["PATH_INFO"] && "POST" == env["REQUEST_METHOD"]
    $gc_started = false
  end
  [ 200, {}, [ "#$gc_started\n" ] ]
}

Version data entries

68 entries across 68 versions & 7 rubygems

Version Path
unicorn-6.1.0 t/oob_gc.ru
unicorn-6.0.0 t/oob_gc.ru
unicorn-5.8.0 t/oob_gc.ru
unicorn-5.7.0 t/oob_gc.ru
unicorn-5.6.0 t/oob_gc.ru
unicorn-5.5.5 t/oob_gc.ru
unicorn-5.5.4 t/oob_gc.ru
unicorn-5.5.3 t/oob_gc.ru
unicorn-5.5.2 t/oob_gc.ru
unicorn-5.5.1 t/oob_gc.ru
unicorn-5.5.0.1.g6836 t/oob_gc.ru
unicorn-5.5.0 t/oob_gc.ru
unicorn-5.5.0.pre1 t/oob_gc.ru
unicorn-5.4.1 t/oob_gc.ru
unicorn-5.4.0 t/oob_gc.ru
unicorn-5.3.1 t/oob_gc.ru
unicorn-shopify-5.3.0 t/oob_gc.ru
unicorn-5.3.0 t/oob_gc.ru
unicorn-5.3.0.pre1 t/oob_gc.ru
unicorn-shopify-5.2.0.6 t/oob_gc.ru