2008/10/28 Steve Tooke <[EMAIL PROTECTED]>:
> I've worked up a simple patch to merb_activerecord that appears to
> solve this problem for me. It calls
> ActiveRecord::Base#verify_active_connections! before the action is
> dispatched. I'm not sure if this is the right way to go about it, and
> I'm not sure how I can spec this?

I don't this it is the right way to go about it. MySQL drops
connection if no activity in certain period of time.

The real fix is to either increase this period of time in my.cnf (set
it to one week or something) or spawn a thread
that will ping MySQL every once in a while.

http://dev.mysql.com/doc/refman/5.0/en/gone-away.html

And remember, PostgreSQL never goes away from you.
-- 
MK

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" 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/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to