[ZODB-Dev] ZODB: Are all handles closed?

Ulla Theiss u.theiss@eurodata.de
Fri, 07 Mar 2003 15:54:22 +0100


Hello Toby,

Thank you very much!

adding the connection.close(), there are no leak handles any more! And
our urgent problem
is solved hereby.

Neverthenless, we tested it with Zope 2.6.1. and Python 2.1.3.

Ulla.

Toby Dickenson schrieb:
> 
> 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