[Zope] Zope woes continue - server going down regularly. (pos sible solution)

Cayce Ullman c_ullman@yahoo.com
Wed, 8 Dec 1999 18:52:36 -0800 (PST)


Well, I'm not suprised to find out that it was
something I was doing wrong.  However, the
symptons still sound fairly similar and I wouldn't
be suprised it someone his site is doing something
similar.  Also, I tried :
x = Zope.app()
x.close()

And it complains that x  has no attribute close.

any ideas?

Thanks,
Cayce


--- Michel Pelletier <michel@digicool.com> 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
> 

__________________________________________________
Do You Yahoo!?
Thousands of Stores.  Millions of Products.  All in one place.
Yahoo! Shopping: http://shopping.yahoo.com