[Zope] Zope woes continue - server going down regularly. (possible
solution)
Tres Seaver
tseaver@palladion.com
Wed, 08 Dec 1999 15:39:48 -0600
Michel Pelletier wrote:
>
> > -----Original Message-----
> > From: Tres Seaver [mailto:tseaver@palladion.com]
>
> > Michel Pelletier <michel@digicool.com> wrote:
> > > > -----Original Message-----
> > > > From: Cayce Ullman [mailto:c_ullman@yahoo.com]
> >
> > There is stuff in ZODB.ZApplication.py which looks as though
> > it should not be
> > necessary to close a ZODB connection manually:>
>
> > Am I misreading this? Or do we have a refcount cycle in here
> > somewhere?
>
> That code closes the database connection associated with the REQUEST.
> The original poster had an external method that created a *new*
> connection object, *in addition to* the one opened by the REQUEST. The
> Zope Application code knows to clean up the REQUEST connection, but has
> no information about any other connections you open, including those in
> an external method. You must explicitly close() them.
>
> -Michel
Still seems like this could be done in the ZApplication dtor -- oops, __del__
isn't there!
--
================================================================================
Tres Seaver tseaver@palladion.com http://www.palladion.com
Palladion Software Houston, Texas, USA 713-523-6582