kgaughan / dbkit

Taking some of the pain out of Python's DB-API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Connection recycling

kgaughan opened this issue · comments

The pool doesn't currently have a method for recording the time a connection was last used. Without this, its method for dealing with dead and zombie connections is somewhat heavy-handed. It would be better to attach a timestamp to the connections managed by it, along with a timeout to allow them to be collected in an appropriate manner.