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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
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
Hide 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():
...
@@ -167,7 +167,8 @@ def main():
elif
opt
==
'-S'
:
elif
opt
==
'-S'
:
suicide
=
False
suicide
=
False
elif
opt
==
'-v'
:
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
=
ZEO
.
runzeo
.
ZEOOptions
()
zo
.
realize
([
"-C"
,
configfile
])
zo
.
realize
([
"-C"
,
configfile
])
...
@@ -181,11 +182,11 @@ def main():
...
@@ -181,11 +182,11 @@ def main():
else
:
else
:
test_addr
=
addr
+
'-test'
test_addr
=
addr
+
'-test'
log
(
label
,
'creating the storage server'
)
log
(
label
,
'creating the storage server'
)
storage
=
zo
.
storages
[
0
].
open
()
mon_addr
=
None
mon_addr
=
None
if
zo
.
monitor_address
:
if
zo
.
monitor_address
:
mon_addr
=
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
:
try
:
log
(
label
,
'creating the test server, keep: %s'
,
keep
)
log
(
label
,
'creating the test server, keep: %s'
,
keep
)
...
@@ -194,8 +195,9 @@ def main():
...
@@ -194,8 +195,9 @@ def main():
if
e
[
0
]
!=
errno
.
EADDRINUSE
:
if
e
[
0
]
!=
errno
.
EADDRINUSE
:
raise
raise
log
(
label
,
'addr in use, closing and exiting'
)
log
(
label
,
'addr in use, closing and exiting'
)
storage
.
close
()
for
storage
in
storages
.
values
():
cleanup
(
storage
)
storage
.
close
()
cleanup
(
storage
)
sys
.
exit
(
2
)
sys
.
exit
(
2
)
t
.
register_socket
(
server
.
dispatcher
)
t
.
register_socket
(
server
.
dispatcher
)
...
...
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