Sha256: 749a09a154f68066cd459f843c807d9be641d8e3e3d7f679be37424efe1c6fb7

Contents?: true

Size: 452 Bytes

Versions: 68

Compression:

Stored size: 452 Bytes

Contents

#\-E none
require 'unicorn/oob_gc'
use Rack::ContentLength
use Rack::ContentType, "text/plain"
use Unicorn::OobGC, 5, /BAD/
$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-5.0.1 t/oob_gc_path.ru
unicorn-5.0.0 t/oob_gc_path.ru
unicorn-5.0.0.pre2 t/oob_gc_path.ru
unicorn-5.0.0.pre1 t/oob_gc_path.ru
unicorn-camilo-5.0.0 t/oob_gc_path.ru
unicorn-4.9.0 t/oob_gc_path.ru
unicorn-camilo-4.8.2.5.19 t/oob_gc_path.ru
unicorn-camilo-4.8.2.5.18 t/oob_gc_path.ru
unicorn-camilo-4.8.2.5.17 t/oob_gc_path.ru
unicorn-camilo-4.8.2.5.16 t/oob_gc_path.ru
unicorn-camilo-4.8.2.5.15 t/oob_gc_path.ru
unicorn-camilo-4.8.2.5.14 t/oob_gc_path.ru
unicorn-camilo-4.8.2.5.13 t/oob_gc_path.ru
unicorn-4.8.3 t/oob_gc_path.ru
unicorn-camilo-4.8.2.5.12 t/oob_gc_path.ru
unicorn-camilo-4.8.2.5.11 t/oob_gc_path.ru
unicorn-camilo-4.8.2.5.10 t/oob_gc_path.ru
unicorn-camilo-4.8.2.5.g0b28.dirty t/oob_gc_path.ru
unicorn-4.8.2 t/oob_gc_path.ru
unicorn-4.8.1.1.g9b565 t/oob_gc_path.ru