code-google-com / mythbox

Automatically exported from code.google.com/p/mythbox
GNU General Public License v2.0
0 stars 1 forks source link

Database connections are kept open for the duration of the session #107

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Startup mythbox
2. Let it sit overnight (database connection will time out)
3. Use mythbox

What is the expected output? What do you see instead?
Actual: db connection is stale after it is left idle for a long time
Expected: db connection should disconnect/reconnect on demand after 
configurable idle period.

Original issue reported on code.google.com by semir.pa...@gmail.com on 13 Jul 2010 at 2:55

GoogleCodeExporter commented 9 years ago
Fixed with the use of EvictingPool.  Db connections are evicted after 10 mins 
of idling and reconnect on demand. 

Original comment by semir.pa...@gmail.com on 13 Jul 2010 at 2:56