Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZODB
Commits
083afb24
Commit
083afb24
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
6d8ba1ff
Changes
1
Hide 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 @
083afb24
...
@@ -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