Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZEO
Commits
20b86296
Commit
20b86296
authored
May 09, 2001
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove is_connected stuff (not supported w/ZEO1).
Add optional cache_size argument.
parent
83d6d826
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
src/ZEO/tests/forker.py
src/ZEO/tests/forker.py
+3
-5
No files found.
src/ZEO/tests/forker.py
View file @
20b86296
...
@@ -65,7 +65,7 @@ def run_server(storage, addr, rd, wr):
...
@@ -65,7 +65,7 @@ def run_server(storage, addr, rd, wr):
os
.
unlink
(
addr
)
os
.
unlink
(
addr
)
def
start_zeo
(
storage
,
cache
=
None
,
cleanup
=
None
,
domain
=
"AF_INET"
,
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.
"""Setup ZEO client-server for storage.
Returns a ClientStorage instance and a ZEOClientExit instance.
Returns a ClientStorage instance and a ZEOClientExit instance.
...
@@ -84,9 +84,7 @@ def start_zeo(storage, cache=None, cleanup=None, domain="AF_INET",
...
@@ -84,9 +84,7 @@ def start_zeo(storage, cache=None, cleanup=None, domain="AF_INET",
pid
,
exit
=
start_zeo_server
(
storage
,
addr
)
pid
,
exit
=
start_zeo_server
(
storage
,
addr
)
s
=
ZEO
.
ClientStorage
.
ClientStorage
(
addr
,
storage_id
,
s
=
ZEO
.
ClientStorage
.
ClientStorage
(
addr
,
storage_id
,
debug
=
1
,
client
=
cache
)
debug
=
1
,
client
=
cache
,
if
hasattr
(
s
,
'is_connected'
):
cache_size
=
cache_size
)
while
not
s
.
is_connected
():
time
.
sleep
(
0.1
)
return
s
,
exit
,
pid
return
s
,
exit
,
pid
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment