option to ignore bandwidth limits for local peers. fixed some asserts when allowing multiple connections per IP

This commit is contained in:
Arvid Norberg
2007-05-25 17:06:30 +00:00
parent c48bba388e
commit 685f79b82f
7 changed files with 91 additions and 23 deletions

View File

@@ -71,6 +71,8 @@ namespace libtorrent
{
INVARIANT_CHECK;
assert(!peer->ignore_bandwidth_limits());
// make sure this peer isn't already in line
// waiting for bandwidth
#ifndef NDEBUG