Paul Johnston wrote: > > It's due to the MySQL connections timing out as they're not used. If you > use SQLAlchemy you can configure connections to periodically refresh, > which will avoid this happening. Not sure if there's a fix for > SQLObject; perhaps you can configure your MySQL server to have longer > timeouts.
You could use the TG scheduler to have a SQL query executed within the given timespan. Something trivial like Contact.get(1) will do the job. If I've read line 95 ff in sqlobject/mysql/mysqlconnection.py right SO should try to reconnect. But I don't know whether this is implemented in versions prior to 0.10. -- W-Mark Kubacki
smime.p7s
Description: S/MIME Cryptographic Signature

