[ZODB-Dev] transaction exception-related reference leaks
Chris McDonough
chrism at plope.com
Mon Sep 13 04:33:52 EDT 2010
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.
- C
-------------- next part --------------
A non-text attachment was scrubbed...
Name: exc.diff
Type: text/x-patch
Size: 5435 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zodb-dev/attachments/20100913/ea371c8d/attachment.bin
More information about the ZODB-Dev
mailing list