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
zhifan huang
re6stnet
Commits
d89463b1
Commit
d89463b1
authored
Jun 03, 2013
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log more information when trying to (re)bootstrap
parent
8e9f72fe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
re6st/tunnel.py
re6st/tunnel.py
+4
-0
No files found.
re6st/tunnel.py
View file @
d89463b1
...
@@ -246,6 +246,8 @@ class TunnelManager(object):
...
@@ -246,6 +246,8 @@ class TunnelManager(object):
self
.
_countRoutes
()
self
.
_countRoutes
()
disconnected
=
self
.
_disconnected
disconnected
=
self
.
_disconnected
if
disconnected
is
not
None
:
if
disconnected
is
not
None
:
logging
.
info
(
"No route to registry (%u neighbours, %u distant"
" peers)"
,
len
(
disconnected
),
len
(
distant_peers
))
# We aren't the registry node and we have no tunnel to or from it,
# We aren't the registry node and we have no tunnel to or from it,
# so it looks like we are not connected to the network, and our
# so it looks like we are not connected to the network, and our
# neighbours are in the same situation.
# neighbours are in the same situation.
...
@@ -290,6 +292,8 @@ class TunnelManager(object):
...
@@ -290,6 +292,8 @@ class TunnelManager(object):
bootstrap
=
True
bootstrap
=
True
for
peer
,
address
in
self
.
_peer_db
.
getPeerList
():
for
peer
,
address
in
self
.
_peer_db
.
getPeerList
():
if
peer
not
in
disconnected
:
if
peer
not
in
disconnected
:
logging
.
info
(
"Try to bootstrap using peer %u/%u"
,
int
(
peer
,
2
),
len
(
peer
))
bootstrap
=
False
bootstrap
=
False
if
self
.
_makeTunnel
(
peer
,
address
):
if
self
.
_makeTunnel
(
peer
,
address
):
new
+=
1
new
+=
1
...
...
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