Skip to content
Browse files

Remove CGI::Session memory leak patch

  • Loading branch information...
1 parent ec1bd98 commit 246b582ddf3c2ec4939be9d55018d97066d7fac8 @josh josh committed Dec 16, 2008
Showing with 0 additions and 5 deletions.
  1. +0 −5 actionpack/lib/action_controller/base.rb
View
5 actionpack/lib/action_controller/base.rb
@@ -1160,13 +1160,8 @@ def expires_now #:doc:
def reset_session #:doc:
request.reset_session
@_session = request.session
- #http://rails.lighthouseapp.com/projects/8994/tickets/1558-memory-problem-on-reset_session-in-around_filter#ticket-1558-1
- #MRI appears to have a GC related memory leak to do with the finalizer that is defined on CGI::Session
- ObjectSpace.undefine_finalizer(@_session)
- response.session = @_session
end
-
private
def render_for_file(template_path, status = nil, layout = nil, locals = {}) #:nodoc:
logger.info("Rendering #{template_path}" + (status ? " (#{status})" : '')) if logger

0 comments on commit 246b582

Please sign in to comment.
Something went wrong with that request. Please try again.