From e8eb1ca96c750873e9be0ccdf85c3eb24790205a Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 28 Mar 2007 19:11:30 +0000 Subject: [PATCH] prioritizes upload bandwidth to peers we are interested in and that have unchoked us --- src/peer_connection.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index b757ac387..903c06ad4 100755 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -1829,8 +1829,9 @@ namespace libtorrent (*m_logger) << "req bandwidth [ " << upload_channel << " ]\n"; #endif - // the upload queue should not have non-prioritized peers - t->request_bandwidth(upload_channel, self(), false); + // peers that we are not interested in are non-prioritized + t->request_bandwidth(upload_channel, self() + , !(is_interesting() && !has_peer_choked())); m_writing = true; } return;