improved peer exchange performance by sharing incoming connections which advertize listen port

This commit is contained in:
Arvid Norberg
2012-01-04 20:49:54 +00:00
parent 315ff0bb83
commit 61e8d3dd49
5 changed files with 41 additions and 5 deletions

View File

@@ -1777,8 +1777,10 @@ namespace libtorrent
{
t->get_policy().update_peer_port(listen_port
, peer_info_struct(), peer_info::incoming);
received_listen_port();
if (is_disconnecting()) return;
}
// there should be a version too
// but where do we put that info?