[Zope] Re: MySQL thread connection question

Dieter Maurer dieter at handshake.de
Thu Aug 19 13:50:09 EDT 2004


Chris Withers wrote at 2004-8-19 09:09 +0200:
> ...
>> The only problem with "_v_" variables is that they can disappear
>> at subtransaction boundaries.
>
>Yep, and with no attempt to close the RDB connection they represent, 
>leaking DB connections...

This is the responsibility of the class which encapulates the
connection (its instances are used as values of the "_v_connection"
attribute) if it does not happen automatically.

It happens automatically for ZPsycopgDA.

It happened automatically for an ancient ZOracleDA version (I used
several years ago) after I had prevented the creation of
a cyclic structure (which prevented automatic garbage collection).


-- 
Dieter


More information about the Zope mailing list