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:
Adrien Béraud committed 2016-11-09 21:53:43 -05:00
1 parent 206f12648f
commit 42171efc3f
1 file changed
-3
-3
View File
@@ -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;
}
}
}