Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
opendht
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
savoirfairelinux
opendht
Commits
bd085061
Commit
bd085061
authored
8 years ago
by
Adrien Béraud
Browse files
Options
Downloads
Patches
Plain Diff
dht: wait for connection before running searches
parent
d44c5901
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/dht.cpp
+2
-0
2 additions, 0 deletions
src/dht.cpp
with
2 additions
and
0 deletions
src/dht.cpp
+
2
−
0
View file @
bd085061
...
...
@@ -722,6 +722,8 @@ void
Dht
::
searchStep
(
std
::
shared_ptr
<
Search
>
sr
)
{
if
(
not
sr
or
sr
->
expired
or
sr
->
done
)
return
;
if
(
sr
->
nodes
.
empty
()
and
(
sr
->
af
==
AF_INET
?
buckets
:
buckets6
).
isEmpty
())
return
;
// wait for connection
const
auto
&
now
=
scheduler
.
time
();
DHT_LOG
.
DEBUG
(
"[search %s IPv%c] step (%d requests)"
,
sr
->
id
.
toString
().
c_str
(),
sr
->
af
==
AF_INET
?
'4'
:
'6'
,
sr
->
currentGetRequests
());
...
...
This diff is collapsed.
Click to expand it.
Simon Désaulniers
@sim590
mentioned in commit
c1e86b48
·
2 years ago
mentioned in commit
c1e86b48
mentioned in commit c1e86b48f14450a5275cf0d74dbbd105fc3800e1
Toggle commit list
Simon Désaulniers
@sim590
mentioned in commit
ed1ca6db
·
2 years ago
mentioned in commit
ed1ca6db
mentioned in commit ed1ca6db8f0a0a7d6bcb2f707175e1bb8f049305
Toggle commit list
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment