Skip to content

Commit 37e6b98

Browse files
committed
Also fix tag leak in railsbench
1 parent ff683fe commit 37e6b98

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

benchmarks/railsbench/benchmark.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
unless response_array.first == 200
3030
raise "HTTP response is #{response_array.first} instead of 200. Is the benchmark app properly set up? See README.md."
3131
end
32+
response_array.last.close # Response might be a Rack::BodyProxy and MUST be closed.
3233
end
3334
end
3435

benchmarks/railsbench/popular_lines.rb

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

benchmarks/railsbench/popular_methods.rb

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

0 commit comments

Comments
 (0)