summaryrefslogtreecommitdiff
path: root/Mailman/Queue/OutgoingRunner.py
diff options
context:
space:
mode:
authorbwarsaw2002-03-13 05:57:37 +0000
committerbwarsaw2002-03-13 05:57:37 +0000
commit8600d5cc3f9a51142fc274a79eea7d8048994485 (patch)
tree32d8d6132baf80556b505b0a707da52b3e15be76 /Mailman/Queue/OutgoingRunner.py
parente3c2af7859aa84a2fda80c9728b04e7f8e965e2e (diff)
downloadmailman-8600d5cc3f9a51142fc274a79eea7d8048994485.tar.gz
mailman-8600d5cc3f9a51142fc274a79eea7d8048994485.tar.zst
mailman-8600d5cc3f9a51142fc274a79eea7d8048994485.zip
We can get rid of the old list cache, and the freshen machinery. Now
_open_list() caches the MailList instances in a WeakValueDictionary which don't contribute to the reference count, but ensure that each runner will get one and only one copy of the MailList data. This should help in the memory footprint of the runners, but I suspect we may still be leaking something.
Diffstat (limited to 'Mailman/Queue/OutgoingRunner.py')
-rw-r--r--Mailman/Queue/OutgoingRunner.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/Mailman/Queue/OutgoingRunner.py b/Mailman/Queue/OutgoingRunner.py
index 0b3973999..681814a92 100644
--- a/Mailman/Queue/OutgoingRunner.py
+++ b/Mailman/Queue/OutgoingRunner.py
@@ -43,9 +43,6 @@ class OutgoingRunner(Runner):
# Maps mailing lists to (recip, msg) tuples
self._permfailures = {}
self._permfail_counter = 0
- # We never lock the lists, but we need to be sure that MailList
- # objects read from the cache are always fresh.
- self._freshen = 1
# We look this function up only at startup time
modname = 'Mailman.Handlers.' + mm_cfg.DELIVERY_MODULE
mod = __import__(modname)