[Zodb-checkins] CVS: Packages/ZEO - forker.py:1.4

jeremy@digicool.com jeremy@digicool.com
Wed, 9 May 2001 12:38:38 -0400 (EDT)


Update of /cvs-repository/Packages/ZEO/tests
In directory korak:/tmp/cvs-serv20760

Modified Files:
	forker.py 
Log Message:
Remove is_connected stuff (not supported w/ZEO1).
Add optional cache_size argument.




--- Updated File forker.py in package Packages/ZEO --
--- forker.py	2001/05/08 21:16:37	1.3
+++ forker.py	2001/05/09 16:38:38	1.4
@@ -65,7 +65,7 @@
         os.unlink(addr)
 
 def start_zeo(storage, cache=None, cleanup=None, domain="AF_INET",
-              storage_id="1"):
+              storage_id="1", cache_size=20000000):
     """Setup ZEO client-server for storage.
 
     Returns a ClientStorage instance and a ZEOClientExit instance.
@@ -84,9 +84,7 @@
 
     pid, exit = start_zeo_server(storage, addr)
     s = ZEO.ClientStorage.ClientStorage(addr, storage_id,
-                                        debug=1, client=cache)
-    if hasattr(s, 'is_connected'):
-        while not s.is_connected():
-            time.sleep(0.1)
+                                        debug=1, client=cache,
+                                        cache_size=cache_size)
     return s, exit, pid