Skip to content

Commit

Permalink
Merge pull request #322 from Shopify/fix-tagged-logger-leak
Browse files Browse the repository at this point in the history
Fix a leak in Lobsters benchmark
  • Loading branch information
casperisfine authored Sep 6, 2024
2 parents 133a6c9 + 37e6b98 commit 7f12bf0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions benchmarks/lobsters/benchmark.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
puts response_array.inspect
raise "HTTP status is #{response_array.first} instead of 200 for req #{idx}/#{generator.routes.size}, #{path.inspect}. 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

Expand Down
1 change: 1 addition & 0 deletions benchmarks/railsbench/benchmark.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
unless response_array.first == 200
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

Expand Down
1 change: 1 addition & 0 deletions benchmarks/railsbench/popular_lines.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,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

Expand Down
1 change: 1 addition & 0 deletions benchmarks/railsbench/popular_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,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

Expand Down

0 comments on commit 7f12bf0

Please sign in to comment.