[Zodb-checkins] CVS: ZODB3/ZEO/zrpc - trigger.py:1.14.20.1
Jeremy Hylton
jeremy at zope.com
Tue Sep 30 23:03:18 EDT 2003
Update of /cvs-repository/ZODB3/ZEO/zrpc
In directory cvs.zope.org:/tmp/cvs-serv8104
Modified Files:
Tag: Zope-2_7-branch
trigger.py
Log Message:
Untested, potentially leak-free close() method for Windows.
=== ZODB3/ZEO/zrpc/trigger.py 1.14 => 1.14.20.1 ===
--- ZODB3/ZEO/zrpc/trigger.py:1.14 Fri Jan 3 17:07:41 2003
+++ ZODB3/ZEO/zrpc/trigger.py Tue Sep 30 23:03:10 2003
@@ -167,6 +167,15 @@
self.lock = thread.allocate_lock()
self.thunks = []
self._trigger_connected = 0
+ self._closed = 0
+
+ def close(self):
+ if not self._closed:
+ self._closed = 1
+ self.del_channel()
+ # self.socket is a, self.trigger is w from __init__
+ self.socket.close()
+ self.trigger.close()
def __repr__(self):
return '<select-trigger (loopback) at %x>' % id(self)
More information about the Zodb-checkins
mailing list