From a5ba06024024f60d9fe0e5d2fab6c7d48c50d94a Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Wed, 12 Nov 2008 00:54:44 +0000 Subject: [PATCH] when calculating desired queue size, block size should not depend on whether or not they are merged in the requests --- src/peer_connection.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/peer_connection.cpp b/src/peer_connection.cpp index 360417e93..44486f7ea 100644 --- a/src/peer_connection.cpp +++ b/src/peer_connection.cpp @@ -2906,8 +2906,7 @@ namespace libtorrent // the minimum number of requests is 2 and the maximum is 48 // the block size doesn't have to be 16. So we first query the // torrent for it - const int block_size = m_request_large_blocks - ? t->torrent_file().piece_length() : t->block_size(); + const int block_size = t->block_size(); TORRENT_ASSERT(block_size > 0); if (m_snubbed)