durusmail: durus-users: Connections lost when server restarts
Connections lost when server restarts
2009-10-13
2009-10-15
Connections lost when server restarts
Patrick Dobbs
2009-10-13
Hello,

I'm using ClientStorage in a long running, single threaded application.
It seems to make sense for the Connection object to be long lived so it
can do caching goodness. However, if the server is restarted then the
connection is broken and an exception is raised. Since this can occur on
read as well as write operations the only solution I can see is to wrap
the entire application in a try/except. This seems clumsy.

I'm sure this is an issue which is addressed in QPy and other
applications, and I was wondering if someone could suggest a good solution.

Thanks

Patrick

reply