Hi, all!
I've got a problem in my GUI app - if a connection stayes open for too long,
and is inactive (user opened an editing window and went away for a cofee
brake etc), firewall/other network machinery will close the connection and
the session will fail with 'connection abnormally terminated'. So I'm trying
to come up with a best way to handle that, and for now I've settled with
using timer and executing session.connection().execute('select now()') every
minute or so, but that requires handling of each session\connection
individually. Can I get a list of all open connections for an engine,
iterate over them and do execute('select now()')? Thanks.
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" 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/sqlalchemy?hl=en.