Skip to content
Snippets Groups Projects
Unverified Commit 73686deb authored by Simon Désaulniers's avatar Simon Désaulniers
Browse files

dht: before sending 'listen', send find_node

Since pagination, a bug was making the listen feature unusable running in
infinite loop. This also makes more sense than sending 'get' since the listen
request is paired with a Query defining the values that have to be fetched.
parent 97950621
Branches
Tags
No related merge requests found
...@@ -951,7 +951,7 @@ Dht::searchSendGetValues(std::shared_ptr<Search> sr, SearchNode* pn, bool update ...@@ -951,7 +951,7 @@ Dht::searchSendGetValues(std::shared_ptr<Search> sr, SearchNode* pn, bool update
return nullptr; return nullptr;
} }
if (sr->callbacks.empty() and sr->listeners.empty()) { if (sr->callbacks.empty()) {
DHT_LOG.WARN("[search %s IPv%c] [node %s] sending 'find_node'", DHT_LOG.WARN("[search %s IPv%c] [node %s] sending 'find_node'",
sr->id.toString().c_str(), sr->af == AF_INET ? '4' : '6', sr->id.toString().c_str(), sr->af == AF_INET ? '4' : '6',
n->node->toString().c_str()); n->node->toString().c_str());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment