From 81c5242f43cb45d97b2a56409f8b39b0dba75ac3 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sat, 19 Nov 2005 10:55:11 +0000 Subject: r3181@asus: jeremy | 2005-11-19 02:52:24 -0800 Mark connections for verification. Retrieve connection verifies before returning a connection. Verification tests whether the connection is marked then reconnects if the connection is inactive. All active connections are marked for verification after a request is handled. References #428. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3096 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/lib/dispatcher.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'railties') diff --git a/railties/lib/dispatcher.rb b/railties/lib/dispatcher.rb index a2fc6e8553..e155421cc6 100644 --- a/railties/lib/dispatcher.rb +++ b/railties/lib/dispatcher.rb @@ -73,6 +73,7 @@ class Dispatcher def reset_after_dispatch reset_application! if Dependencies.load? + ActiveRecord::Base.mark_active_connections_for_verification! Breakpoint.deactivate_drb if defined?(BREAKPOINT_SERVER_PORT) end -- cgit v1.2.3