Skip to content

Commit 2aea310

Browse files
committed
Close rack body in railsbench/slow_methods.rb
1 parent d9a8be7 commit 2aea310

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

benchmarks/railsbench/slow_methods.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def run_bench(app, visiting_routes)
2121
p response_array
2222
raise "HTTP response is #{response_array.first} instead of 200. Is the benchmark app properly set up? See README.md."
2323
end
24+
response_array.last.close # Response might be a Rack::BodyProxy and MUST be closed.
2425
end
2526
end
2627

0 commit comments

Comments
 (0)