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
283f6f54
Commit
283f6f54
authored
Jun 08, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
If bind fails, presumably because address already in use, retry
traviiiiiiiiis
parent
f66e1f6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
src/ZEO/zrpc/server.py
src/ZEO/zrpc/server.py
+12
-1
No files found.
src/ZEO/zrpc/server.py
View file @
283f6f54
...
...
@@ -70,7 +70,18 @@ class Dispatcher(asyncore.dispatcher):
self
.
create_socket
(
socket
.
AF_UNIX
,
socket
.
SOCK_STREAM
)
self
.
set_reuse_addr
()
log
(
"listening on %s"
%
str
(
self
.
addr
),
logging
.
INFO
)
self
.
bind
(
self
.
addr
)
for
i
in
range
(
25
):
try
:
self
.
bind
(
self
.
addr
)
except
Exception
as
exc
:
log
(
"bind failed %s waiting"
,
i
)
if
i
==
24
:
raise
else
:
time
.
sleep
(
5
)
else
:
self
.
listen
(
5
)
def
writable
(
self
):
...
...
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