don't time out peers as long as we can upload to them

This commit is contained in:
Arvid Norberg 2011-04-27 08:05:37 +00:00
parent d5824d1c7f
commit 1723e2d4f7
1 changed files with 1 additions and 1 deletions

View File

@ -3906,7 +3906,7 @@ namespace libtorrent
// if the peer hasn't said a thing for a certain
// time, it is considered to have timed out
time_duration d;
d = now - m_last_receive;
d = (std::min)(now - m_last_receive, now - m_last_sent);
// if we can't read, it means we're blocked on the rate-limiter
// or the disk, not the peer itself. In this case, don't blame