introduced a proper half open TCP connection limit. Also exposed the connection queue to let clients use the same connection limiter as libtorrent. UPnP connections and tracker connection are now also limited as well as peer connections and web seeds
This commit is contained in:
@@ -258,7 +258,7 @@ void print_peer_info(std::ostream& out, std::vector<libtorrent::peer_info> const
|
||||
for (std::vector<peer_info>::const_iterator i = peers.begin();
|
||||
i != peers.end(); ++i)
|
||||
{
|
||||
if (i->flags & (peer_info::handshake | peer_info::connecting | peer_info::queued))
|
||||
if (i->flags & (peer_info::handshake))
|
||||
continue;
|
||||
|
||||
out.fill(' ');
|
||||
|
Reference in New Issue
Block a user