Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (13 sloc) 220 Bytes
module Rack
# Forces garbage collection after each request.
class GarbageCollector
def initialize(app)
@app = app
end
def call(env)
@app.call(env)
ensure
GC.start
end
end
end
Something went wrong with that request. Please try again.