Skip to content

Commit 8dc9b6d

Browse files
authored
Merge pull request #324 from Shopify/rwstauner/slow-methods.close
Close rack body in railsbench/slow_methods.rb
2 parents d9a8be7 + 2aea310 commit 8dc9b6d

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)