Leaking HTTP requests (was: RE: [Zope] Leaking Acquisition.Im plic itAcquirerWrapper)

Dieter Maurer dieter at handshake.de
Mon May 17 14:20:23 EDT 2004


Jean-Francois.Doyon at CCRS.NRCan.gc.ca wrote at 2004-5-17 13:14 -0400:
> ...
>OK, so I've tried to flush the cache, and look at the ref counts, and
>nothing jumped out at me other than the usual suspects.
>
>I often see refcounts to a variety of my own content types/classes, but
>they seem pretty stable.

They should go away after you flushed the cache.

It they do not go away, then they are part of the problem...


> ...
>First, in ZPublisher I patch HTTPRequest.__init__ to maintain a global
>list of weakref's to the instances created.  This gives me a way to access
>existing HTTPRequest instances, notably the ones that are sticking around
>that shouldn't be.

Interesting...

> ...
>is this bad when applied to a persistent object?:
>
>setattr(self,'thumbnail', Image(id='thumbnail') )

This is harmless.

-- 
Dieter



More information about the Zope mailing list