[ZODB-Dev] transaction exception-related reference leaks

Jim Fulton jim at zope.com
Tue Sep 14 07:01:12 EDT 2010


On Mon, Sep 13, 2010 at 4:33 AM, Chris McDonough <chrism at plope.com> wrote:
> I noticed some weird behavior with exceptions and transactions recently
> (in particular, a WSGI server which relies on a __del__ to close its
> client connection wasn't disconnecting from the client immediately when
> a conflict error was raised by ZODB, but would indeed disconnect if a
> conflict error had not been raised).
>
> I tracked this down to the zope transaction module leaking frame stacks
> via retrieving traceback objects from sys.exc_info() without
> subsequently removing them from local scope.
>
> With the attached patch, the issue was solved.  If no one complains,
> I'll apply it to the transaction trunk.

Thanks.

JIm

-- 
Jim Fulton


More information about the ZODB-Dev mailing list