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
14f0257d
Commit
14f0257d
authored
Jan 05, 2015
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed: server names and multiple servers weren't handled correctly
parent
d5082536
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
src/ZEO/tests/zeoserver.py
src/ZEO/tests/zeoserver.py
+7
-5
No files found.
src/ZEO/tests/zeoserver.py
View file @
14f0257d
...
...
@@ -167,7 +167,8 @@ def main():
elif
opt
==
'-S'
:
suicide
=
False
elif
opt
==
'-v'
:
ZEO
.
zrpc
.
connection
.
Connection
.
current_protocol
=
arg
.
encode
(
'ascii'
)
ZEO
.
zrpc
.
connection
.
Connection
.
current_protocol
=
arg
.
encode
(
'ascii'
)
zo
=
ZEO
.
runzeo
.
ZEOOptions
()
zo
.
realize
([
"-C"
,
configfile
])
...
...
@@ -181,11 +182,11 @@ def main():
else
:
test_addr
=
addr
+
'-test'
log
(
label
,
'creating the storage server'
)
storage
=
zo
.
storages
[
0
].
open
()
mon_addr
=
None
if
zo
.
monitor_address
:
mon_addr
=
zo
.
monitor_address
server
=
ZEO
.
runzeo
.
create_server
({
"1"
:
storage
},
zo
)
storages
=
dict
((
s
.
name
or
'1'
,
s
.
open
())
for
s
in
zo
.
storages
)
server
=
ZEO
.
runzeo
.
create_server
(
storages
,
zo
)
try
:
log
(
label
,
'creating the test server, keep: %s'
,
keep
)
...
...
@@ -194,6 +195,7 @@ def main():
if
e
[
0
]
!=
errno
.
EADDRINUSE
:
raise
log
(
label
,
'addr in use, closing and exiting'
)
for
storage
in
storages
.
values
():
storage
.
close
()
cleanup
(
storage
)
sys
.
exit
(
2
)
...
...
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