From 2aea31049b20bd11b5fb7caf0666d8da15f6792b Mon Sep 17 00:00:00 2001 From: Randy Stauner Date: Fri, 6 Sep 2024 13:08:54 -0700 Subject: [PATCH] Close rack body in railsbench/slow_methods.rb --- benchmarks/railsbench/slow_methods.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/benchmarks/railsbench/slow_methods.rb b/benchmarks/railsbench/slow_methods.rb index e514cb1f..207b5487 100644 --- a/benchmarks/railsbench/slow_methods.rb +++ b/benchmarks/railsbench/slow_methods.rb @@ -21,6 +21,7 @@ def run_bench(app, visiting_routes) p response_array raise "HTTP response is #{response_array.first} instead of 200. Is the benchmark app properly set up? See README.md." end + response_array.last.close # Response might be a Rack::BodyProxy and MUST be closed. end end