This project is archived and is in readonly mode.

Changeset [bc2c4a45959be21e6314fba7876b32c1f04cd08a] by Hongli Lai (Phusion)

July 8th, 2009 @ 02:46 AM

Cleanup application after #close has been called on the Rack response body, not when AC::Reload#call is done.

The Rack body might lazily evaluate its output, which is for example the case if one calls 'render :text => lambda { ... }'. The code which lazily evaluates the output might use other application classes. So we will want to defer cleanup until the Rack request is completely finished.

Signed-off-by: Michael Koziarski michael@koziarski.com http://github.com/rails/rails/co...

Committed by Hongli Lai (Phusion)

  • M actionpack/lib/action_controller/reloader.rb
  • M actionpack/test/controller/reloader_test.rb

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>