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

@@ -1046,6 +1046,10 @@ namespace aux {
++i;
}
// drain the IP overhead from the bandwidth limiters
m_download_channel.drain(m_stat.download_ip_overhead());
m_upload_channel.drain(m_stat.upload_ip_overhead());
m_stat.second_tick(tick_interval);