mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 12:28:42 +00:00
dht: send values to all sockets for a node
We used to send values once to a given node, however the receiving node may have canceled or dropped the request since then, so we now send the values for every socket and the optimization will happen on the sending side.
This commit is contained in:
1 parent
206f12648f
commit
42171efc3f
1 file changed
-3
@@ -2220,9 +2220,6 @@ Dht::storageChanged(const InfoHash& id, Storage& st, ValueStorage& v)
|
||||
Blob ntoken = makeToken((const sockaddr*)&node_listeners.first->addr.first, false);
|
||||
network_engine.tellListener(node_listeners.first, l.second.sid, id, 0, ntoken, {}, {},
|
||||
std::move(vals), l.second.query);
|
||||
/* The node will distribute a copy of the value for each listener on
|
||||
* that node himself. */
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user