From 94cbac20cdf4bd4788b19ddf5124feae28a8f21c Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Tue, 1 Jul 2008 21:07:18 +0000 Subject: [PATCH] Do not count downloads as seeds in the queue system. --- docs/manual.rst | 12 +++++------- src/session_impl.cpp | 2 -- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/docs/manual.rst b/docs/manual.rst index 8aad08b8c..5224538e3 100644 --- a/docs/manual.rst +++ b/docs/manual.rst @@ -4605,14 +4605,12 @@ limits. To make a torrent auto managed, set ``auto_managed`` to true when adding torrent (see `add_torrent()`_). The limits of the number of downloading and seeding torrents are controlled via -``active_downloads`` and ``active_seeds`` in session_settings_. These limits takes -non auto managed torrents into account as well. If there are are more non-auto managed -torrents being downloaded than the ``active_downloads`` setting, any auto managed -torrents will be queued until torrents are removed so that the number drops below -the limit. +``active_downloads``, ``active_seeds`` and ``active_limit`` in session_settings_. +These limits takes non auto managed torrents into account as well. If there are +more non-auto managed torrents being downloaded than the ``active_downloads`` +setting, any auto managed torrents will be queued until torrents are removed so +that the number drops below the limit. -Seeding torrents counts as downloads, but downloading torrents don't count as -seeding. So, ``active_downloads`` should typically be greater than ``active_seeds``. The default values are 8 active downloads and 5 active seeds. At a regular interval, torrents are checked if there needs to be any re-ordering of diff --git a/src/session_impl.cpp b/src/session_impl.cpp index c98d99182..0e33421e7 100644 --- a/src/session_impl.cpp +++ b/src/session_impl.cpp @@ -1390,7 +1390,6 @@ namespace aux { && t->state() != torrent_status::checking_files) { --num_downloaders; - --num_seeds; if (t->is_paused()) t->resume(); } } @@ -1413,7 +1412,6 @@ namespace aux { if (num_seeds > 0 && hard_limit > 0) { --hard_limit; - --num_downloaders; --num_seeds; if (t->is_paused()) t->resume(); }