On Nov 7, 2007 9:33 PM, Ezra Zygmuntowicz [EMAIL PROTECTED] wrote:
The way that I have put this issue to bed for people is with this
crunchy little hack in their environment.rb:
Thread.new { loop { sleep 60*60
ActiveRecord::Base.verify_active_connections! } }.priority = -10
Steve,
It sounds like you're referring to another setting on the MySQL
side. If the Rails timeout is just a little bit longer, then it will
automatically reconnect.
Is this right?
Thanks,
Pete
On Nov 7, 2007, at 3:56 PM, Steve Midgley wrote:
At 03:24 PM 11/7/2007, [EMAIL PROTECTED]
The way that I have put this issue to bed for people is with this
crunchy little hack in their environment.rb:
Thread.new { loop { sleep 60*60
ActiveRecord::Base.verify_active_connections! } }.priority = -10
That little baby will keep your database connected.
Cheers-
-Ezra