[Zope-Checkins] CVS: Zope/lib/python/ZPublisher - HTTPRequest.py:1.57.2.1
Chris McDonough
chrism@zope.com
Sat, 1 Dec 2001 11:26:08 -0500
Update of /cvs-repository/Zope/lib/python/ZPublisher
In directory cvs.zope.org:/tmp/cvs-serv14315
Modified Files:
Tag: Zope-2_5-branch
HTTPRequest.py
Log Message:
Collector 60 - Zope leaks like sieve.
Request.lazies namespace was not being cleared on close.
=== Zope/lib/python/ZPublisher/HTTPRequest.py 1.57 => 1.57.2.1 ===
return r
+ def close(self):
+ # we want to clear the lazy dict here because BaseRequests don't have
+ # one. Without this, there's the possibility of memory leaking
+ # after every request.
+ self._lazies = {}
+ BaseRequest.close(self)
def setServerURL(self, protocol=None, hostname=None, port=None):
""" Set the parts of generated URLs. """