[Zodb-checkins] CVS: StandaloneZODB/ZEO - zrpc.py:1.18.2.6

Jeremy Hylton jeremy@zope.com
Fri, 26 Oct 2001 12:58:19 -0400


Update of /cvs-repository/StandaloneZODB/ZEO
In directory cvs.zope.org:/tmp/cvs-serv13528

Modified Files:
      Tag: zeo-1_0-branch
	zrpc.py 
Log Message:
When an asyncRPC object is closed, release reference to its
out-of-band hook.  The oob hook participates in a cycle of references
to the Invalidator.


=== StandaloneZODB/ZEO/zrpc.py 1.18.2.5 => 1.18.2.6 ===
         else:
             self.close()
+            self._outOfBand = None
             self.__closed = 1
         
     def close(self):
@@ -312,6 +313,8 @@
         self.aq_parent.notifyDisconnected(self)
         # causes read call to raise last exception, which should be
         # the socket error that caused asyncore to close the socket.
-        self.__r='E'+dump(sys.exc_info()[:2], 1)
-        try: self.__lr()
-        except: pass
+        self.__r = 'E' + dump(sys.exc_info()[:2], 1)
+        try:
+            self.__lr()
+        except:
+            pass