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
3e771c9d
Commit
3e771c9d
authored
Jan 23, 2006
by
Dmitry Vasiliev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed shutdown_zeo_server(), on FreeBSD 5.3 it raised timeout error
in the second iteration
parent
d602011a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/ZEO/tests/forker.py
src/ZEO/tests/forker.py
+6
-0
No files found.
src/ZEO/tests/forker.py
View file @
3e771c9d
...
@@ -176,8 +176,14 @@ def shutdown_zeo_server(adminaddr):
...
@@ -176,8 +176,14 @@ def shutdown_zeo_server(adminaddr):
# superstition.
# superstition.
for
i
in
range
(
3
):
for
i
in
range
(
3
):
s
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
s
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
s
.
settimeout
(.
3
)
try
:
try
:
s
.
connect
(
adminaddr
)
s
.
connect
(
adminaddr
)
except
socket
.
timeout
:
# On FreeBSD 5.3 the connection just timed out
if
i
>
0
:
break
raise
except
socket
.
error
,
e
:
except
socket
.
error
,
e
:
if
e
[
0
]
==
errno
.
ECONNREFUSED
and
i
>
0
:
if
e
[
0
]
==
errno
.
ECONNREFUSED
and
i
>
0
:
break
break
...
...
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