Permalink
Browse files

Default dead_connection_timeout to 5

or the ConnectionPool silently fails to close connections inside the Thread
  • Loading branch information...
1 parent 8dc7ef9 commit a8eb13a87faa2fe2dcf31826ee1c5cce0b3d4d47 @amatsuda amatsuda committed Jan 24, 2013
View
2 activerecord/lib/active_record/connection_adapters/abstract/connection_pool.rb
@@ -237,7 +237,7 @@ def initialize(spec)
@spec = spec
@checkout_timeout = spec.config[:checkout_timeout] || 5
- @dead_connection_timeout = spec.config[:dead_connection_timeout]
+ @dead_connection_timeout = spec.config[:dead_connection_timeout] || 5
@reaper = Reaper.new self, spec.config[:reaping_frequency]
@reaper.run

0 comments on commit a8eb13a

Please sign in to comment.