take an estimate of the IP ACK traffic into account when rate limiting (allows setting rate limits closer to the capacity)

This commit is contained in:
Arvid Norberg
2008-05-05 17:08:14 +00:00
parent d15573ecc2
commit e09457e4ab
6 changed files with 61 additions and 2 deletions

View File

@@ -3489,6 +3489,7 @@ namespace libtorrent
{
peer_connection* p = *i;
++i;
p->calc_ip_overhead();
m_stat += p->statistics();
// updates the peer connection's ul/dl bandwidth
// resource requests