rails--rails/railties/lib/rails/rack
John Hawthorn c8350cc723 Use finish_with_state inside Rack::Logger
This ensures that the finish instrumenter is sent to the same
subscribers that the initial request was sent to.

This solves an issue where in a threaded environment the dynamic
subscriptions from ActionDispatch::ServerTiming would cause a mismatch
in the number of subscriptions to a topic, which would pop too many
values off of the thread-local stacks, leading to invalid events being
sent to subscribers.

Fixes #44167
2022-02-16 16:31:28 -08:00
..
logger.rb Use finish_with_state inside Rack::Logger 2022-02-16 16:31:28 -08:00