Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
re6stnet
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
Xiaowu Zhang
re6stnet
Commits
94e8a309
Commit
94e8a309
authored
Mar 27, 2013
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bootstrap issue when cache contains "many" and only down peers
parent
36e6ea82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
re6st/tunnel.py
re6st/tunnel.py
+8
-5
No files found.
re6st/tunnel.py
View file @
94e8a309
...
...
@@ -263,13 +263,16 @@ class TunnelManager(object):
# No route/tunnel to registry, which usually happens when starting
# up. Select peers from cache for which we have no route.
new
=
0
bootstrap
=
True
for
peer
,
address
in
self
.
_peer_db
.
getPeerList
():
if
peer
not
in
disconnected
and
self
.
_makeTunnel
(
peer
,
address
):
new
+=
1
if
new
==
count
:
return
if
peer
not
in
disconnected
:
bootstrap
=
False
if
self
.
_makeTunnel
(
peer
,
address
):
new
+=
1
if
new
==
count
:
return
if
not
(
new
or
disconnected
):
if
not
(
self
.
_served
or
self
.
_connection_dict
)
:
if
bootstrap
:
# Startup without any good address in the cache.
peer
=
self
.
_peer_db
.
getBootstrapPeer
()
if
peer
and
self
.
_makeTunnel
(
*
peer
):
...
...
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