* Added "max_{up,down}loads_{div,global}" options and man page entries.

* PCB::should_request() didn't check if m_downUnchoked was true, just
m_downChoke.choked(). This would cause requests to be sent while we
were still choked by remote.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@871 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2007-03-20 16:13:20 +00:00
parent 3b13fc7f05
commit 59c6f97cb9
4 changed files with 137 additions and 59 deletions
+63 -51
View File
@@ -388,57 +388,6 @@ directory.
<variablelist>
<varlistentry>
<term>max_peers = <replaceable>value</replaceable></term>
<listitem><para>
Set the maximum number of peers to allow in each download.
</para></listitem>
</varlistentry>
<varlistentry>
<term>min_peers = <replaceable>value</replaceable></term>
<listitem><para>
Set the minimum number of peers to try to connect to in each download.
</para></listitem>
</varlistentry>
<varlistentry>
<term>max_peers_seed = <replaceable>value</replaceable></term>
<listitem><para>
Set the maximum number of peers to allow while seeding, or -1 (default) to use
max_peers.
</para></listitem>
</varlistentry>
<varlistentry>
<term>min_peers_seed = <replaceable>value</replaceable></term>
<listitem><para>
Set the minimum number of peers to try to connect to while seeding, or -1 (default) to use
min_peers.
</para></listitem>
</varlistentry>
<varlistentry>
<term>max_uploads = <replaceable>value</replaceable></term>
<listitem><para>
Set the maximum number of simultaneous uploads per download.
</para></listitem>
</varlistentry>
<varlistentry>
<term>download_rate = <replaceable>KB</replaceable></term>
<listitem><para>
Set the maximum global download rate.
</para></listitem>
</varlistentry>
<varlistentry>
<term>upload_rate = <replaceable>KB</replaceable></term>
<listitem><para>
Set the maximum global upload rate.
</para></listitem>
</varlistentry>
<varlistentry>
<term>bind = <replaceable>a.b.c.d</replaceable></term>
<listitem><para>
@@ -645,6 +594,69 @@ commands are available.
</refsect1>
<refsect1>
<title>THROTTLE SETTINGS</title>
<!-- <para> -->
<!-- </para> -->
<variablelist>
<varlistentry>
<term>upload_rate = <replaceable>KB</replaceable></term>
<term>download_rate = <replaceable>KB</replaceable></term>
<listitem><para>
Set the maximum global uploand and download rates.
</para></listitem>
</varlistentry>
<varlistentry>
<term>min_peers = <replaceable>value</replaceable></term>
<term>max_peers = <replaceable>value</replaceable></term>
<listitem><para>
Set the minimum and maximum number of peers to allow in each download.
</para></listitem>
</varlistentry>
<varlistentry>
<term>min_peers_seed = <replaceable>value</replaceable></term>
<term>max_peers_seed = <replaceable>value</replaceable></term>
<listitem><para>
Set the minimum nad maximum number of peers to allow while seeding, or
-1 (default) to use max_peers.
</para></listitem>
</varlistentry>
<varlistentry>
<term>max_uploads = <replaceable>value</replaceable></term>
<listitem><para>
Set the maximum number of simultaneous uploads per download.
</para></listitem>
</varlistentry>
<varlistentry>
<term>max_uploads_div = <replaceable>value</replaceable></term>
<term>max_downloads_div = <replaceable>value</replaceable></term>
<listitem><para>
Change the divider used to calculate the max upload and download slots
to use when the throttle is changed. Disable by
setting <emphasis>0</emphasis>.
</para></listitem>
</varlistentry>
<varlistentry>
<term>max_uploads_global = <replaceable>value</replaceable></term>
<term>max_downloads_global = <replaceable>value</replaceable></term>
<listitem><para>
Max upload and download slots allowed. Disable by
setting <emphasis>0</emphasis>.
</para></listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>TRACKER RELATED SETTINGS</title>
<para>