Commit 556a793f authored by Guido van Rossum's avatar Guido van Rossum

When using ZEO 2, connect to the storage in read-only mode.

Otherwise, this will just hang trying to connect to a read-only
storage.

Also get rid of the debug=1 argument (it's not used with ZEO 2).
parent a6980f6d
...@@ -36,7 +36,7 @@ ZEO_VERSION = 2 ...@@ -36,7 +36,7 @@ ZEO_VERSION = 2
def check_server(addr, storage, write): def check_server(addr, storage, write):
if ZEO_VERSION == 2: if ZEO_VERSION == 2:
cs = ClientStorage(addr, storage=storage, debug=1, wait=1) cs = ClientStorage(addr, storage=storage, wait=1, read_only=1)
else: else:
cs = ClientStorage(addr, storage=storage, debug=1, cs = ClientStorage(addr, storage=storage, debug=1,
wait_for_server_on_startup=1) wait_for_server_on_startup=1)
......
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