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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
re6stnet
Commits
f68cdf51
Commit
f68cdf51
authored
Dec 21, 2014
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When logging that a tunnel broke, format prefix in CN format (base10/len10) instead of base2
For consistency with other log messages.
parent
cb3c62d3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
re6st/tunnel.py
re6st/tunnel.py
+4
-3
No files found.
re6st/tunnel.py
View file @
f68cdf51
...
@@ -91,9 +91,10 @@ class Connection(object):
...
@@ -91,9 +91,10 @@ class Connection(object):
def
refresh
(
self
):
def
refresh
(
self
):
# Check that the connection is alive
# Check that the connection is alive
if
self
.
process
.
poll
()
!=
None
:
if
self
.
process
.
poll
()
is
not
None
:
logging
.
info
(
'Connection with %s has failed with return code %s'
,
logging
.
info
(
'Connection with %s/%s has failed with return code %s'
,
self
.
_prefix
,
self
.
process
.
returncode
)
int
(
self
.
_prefix
,
2
),
len
(
self
.
_prefix
),
self
.
process
.
returncode
)
if
self
.
_retry
is
None
or
len
(
self
.
address_list
)
<=
self
.
_retry
:
if
self
.
_retry
is
None
or
len
(
self
.
address_list
)
<=
self
.
_retry
:
return
False
return
False
logging
.
info
(
'Retrying with alternate address'
)
logging
.
info
(
'Retrying with alternate address'
)
...
...
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