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

Jeremy Hylton jeremy@zope.com
Mon, 12 Aug 2002 16:32:27 -0400


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

Modified Files:
	connection.py 
Log Message:
Clear up comment inside _do_async_loop() and assert that lock is not held.


=== StandaloneZODB/ZEO/zrpc/connection.py 1.8 => 1.9 ===
--- StandaloneZODB/ZEO/zrpc/connection.py:1.8	Fri Aug  9 16:35:36 2002
+++ StandaloneZODB/ZEO/zrpc/connection.py	Mon Aug 12 16:32:27 2002
@@ -323,8 +323,8 @@
             self.__reply_lock.acquire()
             # wait until reply...
         else:
-            # Do loop only if lock is already acquired.  XXX But can't
-            # we already guarantee that the lock is already acquired?
+            # Do loop until asyncore handler unlocks the lock.
+            assert not self.__reply_lock.acquire(0)
             while not self.__reply_lock.acquire(0):
                 try:
                     asyncore.poll(10.0, self._map)