Comment 1 for bug 143305

Revision history for this message
Tim Peters (tim-one) wrote :

If "temporary connection" means one obtained by passing temporary=True to DB.open(), that argument was deprecated (and ignored) starting in ZODB 3.4 (3.4 has no inherent limit on the # of open connections, so the concept of a "temporary" connection stopped making much sense). I've opened hundreds of thousands of connections in stress programs there and never bothered to close them -- they do go away when they're no longer strongly referenced ("strongly" means that DB and transaction managers in 3.4 hold only weak references to connections).

The connection management code in 3.2 is more complicated and delicate. If you have a patch that works for you, I'll try to get into the next ZODB 3.2 bugfix release (assuming there is another one -- my best guess is yes, there will be).