[Zodb-checkins] CVS: ZODB4/src/zodb/zeo/zrpc - client.py:1.6

Jeremy Hylton jeremy at zope.com
Thu Jun 26 20:02:44 EDT 2003


Update of /cvs-repository/ZODB4/src/zodb/zeo/zrpc
In directory cvs.zope.org:/tmp/cvs-serv2185/zodb/zeo/zrpc

Modified Files:
	client.py 
Log Message:
Make it a new-style class to aid debugging.


=== ZODB4/src/zodb/zeo/zrpc/client.py 1.5 => 1.6 ===
--- ZODB4/src/zodb/zeo/zrpc/client.py:1.5	Thu Mar 13 17:11:36 2003
+++ ZODB4/src/zodb/zeo/zrpc/client.py	Thu Jun 26 19:02:43 2003
@@ -25,7 +25,7 @@
 from zodb.zeo.zrpc.trigger import trigger
 from zodb.zeo.zrpc.connection import ManagedConnection
 
-class ConnectionManager:
+class ConnectionManager(object):
     """Keeps a connection up over time"""
 
     def __init__(self, addrs, client, tmin=1, tmax=180):
@@ -33,6 +33,8 @@
         self.client = client
         self.tmin = tmin
         self.tmax = tmax
+        # XXX Why do we acquire() and release() the lock without
+        # doing a notify?  Maybe this is safe, but we ought to verify.
         self.cond = threading.Condition(threading.Lock())
         self.connection = None # Protected by self.cond
         self.closed = 0




More information about the Zodb-checkins mailing list