[Zodb-checkins] CVS: ZODB3/ZEO/tests - winserver.py:1.6

Guido van Rossum guido@python.org
Thu, 12 Sep 2002 15:02:33 -0400


Update of /cvs-repository/ZODB3/ZEO/tests
In directory cvs.zope.org:/tmp/cvs-serv25184/zeo/tests

Modified Files:
	winserver.py 
Log Message:
Instead of asyncore.loop(), use our own loop that logs a message
each time round the loop (with a 30 sec. timeout).


=== ZODB3/ZEO/tests/winserver.py 1.5 => 1.6 ===
--- ZODB3/ZEO/tests/winserver.py:1.5	Thu Aug 29 12:32:51 2002
+++ ZODB3/ZEO/tests/winserver.py	Thu Sep 12 15:02:33 2002
@@ -57,7 +57,10 @@
     test_port = zeo_port + 1
     t = ZEOTestServer(('', test_port), storage)
     serv = ZEO.StorageServer.StorageServer(('', zeo_port), {'1': storage})
-    asyncore.loop()
+    import zLOG
+    while asyncore.socket_map:
+        zLOG.LOG("winserver", zLOG.BLATHER, "map: %r" % asyncore.socket_map)
+	asyncore.poll(30.0)
 
 if __name__ == "__main__":
     import sys