* Be more aggressive about freeing references to downloading / downloaded pieces when a peer connection sends choke or has an empty queue.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1208 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2011-04-12 04:08:33 +00:00
parent 63ffc11bbc
commit cb45e30aeb
2 changed files with 15 additions and 2 deletions
+1
View File
@@ -304,6 +304,7 @@ initialize_command_local() {
CMD2_ANY ("pieces.memory.current", std::bind(&CM_t::memory_usage, chunkManager));
CMD2_ANY ("pieces.memory.sync_queue", std::bind(&CM_t::sync_queue_memory_usage, chunkManager));
CMD2_ANY ("pieces.memory.block_count", std::bind(&CM_t::memory_block_count, chunkManager));
CMD2_ANY ("pieces.memory.max", std::bind(&CM_t::max_memory_usage, chunkManager));
CMD2_ANY_VALUE_V ("pieces.memory.max.set", std::bind(&CM_t::set_max_memory_usage, chunkManager, std::placeholders::_2));
CMD2_ANY ("pieces.stats_preloaded", std::bind(&CM_t::stats_preloaded, chunkManager));