[ZODB-Dev] ZODB: Are all handles closed?
   
    Toby Dickenson
     
    tdickenson@geminidataloggers.com
       
    Fri, 7 Mar 2003 14:39:09 +0000
    
    
  
On Friday 07 March 2003 1:51 pm, Christian Reis wrote:
> On Fri, Mar 07, 2003 at 02:21:07PM +0100, Ulla Theiss wrote:
>> We have separated the multiple openings and closings to the following
>> code.
>> It shows the increasing of the handles clearly.
Both of your scripts have a bug that is causing the problem demonstrated in 
the second script. db.open returns a connection object, and you need to call 
close on the connection, rather than the db. db.close is an alias for 
storage.close.
For me using Zope 2.6.1 your first script does not leak file descriptors. It 
does leak memory (even after fixing the connection.close bug). This is a 
known problem with closing and opening storages.
-- 
Toby Dickenson
http://www.geminidataloggers.com/people/tdickenson