* Enable custom throttles, both per-download or per-IP. See http://libtorrent.rakshasa.no/ticket/20 for info and instructions. Patch by Josef Drexler.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1091 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2009-05-14 09:49:18 +00:00
parent 05d7028f61
commit 855bf9a781
23 changed files with 618 additions and 51 deletions
+23
View File
@@ -677,6 +677,29 @@ setting <emphasis>0</emphasis>.
</para></listitem>
</varlistentry>
<varlistentry>
<term>throttle_up = <replaceable>name</replaceable>, <replaceable>upload_rate</replaceable></term>
<term>throttle_down = <replaceable>name</replaceable>, <replaceable>download_rate</replaceable></term>
<listitem><para>
Define secondary throttle and/or set the given upload or download rate. Attach to a download with the d.set_throttle_name=name command
or switch throttles with Ctrl-T. Download must be stopped when changing throttles. Note that secondary throttles only work if the
global upload/download is throttled. Setting a download to use the <emphasis>NULL</emphasis> throttle makes the download unthrottled
even when there is a global throttle. Note that this special case bypasses the global throttle entirely, and as such its rate and
transfer amounts are not included in the global statistics.
</para></listitem>
</varlistentry>
<varlistentry>
<term>throttle_ip = <replaceable>name</replaceable>, <replaceable>host</replaceable></term>
<term>throttle_ip = <replaceable>name</replaceable>, <replaceable>network/prefix</replaceable></term>
<term>throttle_ip = <replaceable>name</replaceable>, <replaceable>start</replaceable>, <replaceable>end</replaceable></term>
<listitem><para>
Use the given secondary throttle for a host, CIDR network or IP range. All peers with a matching IP will use this throttle instead
of the global throttle or a custom download throttle. The name may be <emphasis>NULL</emphasis> to make these peers unthrottled, with
the same caveats as explained above.
</para></listitem>
</varlistentry>
</variablelist>
</refsect1>