From 42171efc3fa2d76bd7573746705b4f0eea836834 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrien=20B=C3=A9raud?= Date: Wed, 9 Nov 2016 21:53:43 -0500 Subject: [PATCH] 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. --- src/dht.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/dht.cpp b/src/dht.cpp index eda934ab..fcbd956a 100644 --- a/src/dht.cpp +++ b/src/dht.cpp @@ -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; } } }