afaik Rails runs ActiveRecord::Base.verify_active_connections! before each request. Is this broken?
On Fri, May 16, 2008 at 12:03 AM, sishen <[EMAIL PROTECTED]> wrote: > > Should I submit a patch about this? Thanks. > > On May 13, 8:13 pm, sishen <[EMAIL PROTECTED]> wrote: > > Hi. > > > > Sorry for raise an old issue. I have seen the ticket in trac but no > answers > > found. > > > > My database is mysql and when it's idle for a long time, the connection > lost > > and raise some exception. > > > > I have read the mysql_adapter.rb and find it hasn't used the reconnect > > policy which is allowed by the Mysql Binding. > > > > So why don't enable this feature? Is this a design choice? > > > > I think if we allow to set "reconnect: true" in the database.yml, the > thing > > will be better. > > > > Maybe i miss something, thanks for your all advice. > > > > Best regards. > > > > sishen > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
