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
6569cf1e
Commit
6569cf1e
authored
Sep 29, 2016
by
Julien Muchembled
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rina: fix a case where enrollment was not retried
parent
128edb83
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
re6st/rina.py
re6st/rina.py
+3
-1
No files found.
re6st/rina.py
View file @
6569cf1e
...
@@ -205,7 +205,8 @@ class Shim(object):
...
@@ -205,7 +205,8 @@ class Shim(object):
# so don't block for too long.
# so don't block for too long.
if
now
+
1
<
time
.
time
():
if
now
+
1
<
time
.
time
():
return
return
elif
asking_info
.
get
(
prefix
,
0
)
<
now
and
tm
.
askInfo
(
prefix
):
continue
if
asking_info
.
get
(
prefix
,
0
)
<
now
and
tm
.
askInfo
(
prefix
):
self
.
_enroll
(
tm
,
prefix
)
self
.
_enroll
(
tm
,
prefix
)
asking_info
[
prefix
]
=
now
+
60
asking_info
[
prefix
]
=
now
+
60
...
@@ -216,6 +217,7 @@ class Shim(object):
...
@@ -216,6 +217,7 @@ class Shim(object):
self
.
_enroll
(
tm
,
prefix
)
self
.
_enroll
(
tm
,
prefix
)
else
:
else
:
self
.
_asking_info
[
prefix
]
=
float
(
'inf'
)
self
.
_asking_info
[
prefix
]
=
float
(
'inf'
)
self
.
_enabled
.
pop
(
prefix
,
None
)
@
staticmethod
@
staticmethod
def
_resolve
(
sock
):
def
_resolve
(
sock
):
...
...
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