improve DHT routing table to return better nodes (lower RTT and closer to target)

This commit is contained in:
Arvid Norberg
2013-09-09 04:16:52 +00:00
parent 7c66c2911f
commit 8ab8172cb7
5 changed files with 146 additions and 45 deletions

View File

@@ -597,12 +597,12 @@ setup_transfer(session* ses1, session* ses2, session* ses3
if (connect_peers)
{
std::auto_ptr<alert> a;
do
/* do
{
a = wait_for_alert(*ses2, state_changed_alert::alert_type, "ses2");
} while (static_cast<state_changed_alert*>(a.get())->state != torrent_status::downloading);
wait_for_alert(*ses1, torrent_finished_alert::alert_type, "ses1");
*/
// wait_for_alert(*ses1, torrent_finished_alert::alert_type, "ses1");
error_code ec;
if (use_ssl_ports)