Commit af3a121e authored by Guido van Rossum's avatar Guido van Rossum

Instead of asyncore.loop(), use our own loop that logs a message

each time round the loop (with a 30 sec. timeout).
parent b3a1c826
......@@ -57,7 +57,10 @@ def main(port, storage_name, args):
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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment