(Default is 0)</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><option>MIN_DOWNLOAD_PEERS = <replaceable>number</replaceable></option></term>
+ <listitem>
+ <para>The minimum <replaceable>number</replaceable> of peers before the mirror is not used.
+ If there are fewer peers than this for a file, the mirror will also be
+ used to speed up the download. Set to 0 to never use the mirror if
+ there are peers.
+ (Default is 3)</para>
+ </listitem>
+ </varlistentry>
<varlistentry>
<term><option>CACHE_DIR = <replaceable>directory</replaceable></option></term>
<listitem>
(Default is false)</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><option>REMOTE_STATS = <replaceable>boolean</replaceable></option></term>
+ <listitem>
+ <para>Whether a remote peer can access the statistics page.
+ (Default is True)</para>
+ </listitem>
+ </varlistentry>
<varlistentry>
<term><option>UNLOAD_PACKAGES_CACHE = <replaceable>time</replaceable></option></term>
<listitem>
(Default is 57 minutes.)</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><option>USERNAME = <replaceable>user</replaceable></option></term>
+ <listitem>
+ <para>The <replaceable>user</replaceable> name to try and run as.
+ Leaving this blank will try to run as current user.
+ (Default is 'apt-p2p'.)</para>
+ </listitem>
+ </varlistentry>
<varlistentry>
<term><option>DHT = <replaceable>string</replaceable></option></term>
<listitem>
(Default is false)</para>
</listitem>
</varlistentry>
- <varlistentry>
- <term><option>K = <replaceable>number</replaceable></option></term>
- <listitem>
- <para>The <replaceable>number</replaceable> of the Kademlia "K" constant.
- It should be an even number.
- (Default is 8.)</para>
- </listitem>
- </varlistentry>
- <varlistentry>
- <term><option>HASH_LENGTH = <replaceable>number</replaceable></option></term>
- <listitem>
- <para>The <replaceable>number</replaceable> of bits in the hash to use.
- (Default is 160.)</para>
- </listitem>
- </varlistentry>
<varlistentry>
<term><option>CHECKPOINT_INTERVAL = <replaceable>time</replaceable></option></term>
<listitem>
(Default is 1 hour.)</para>
</listitem>
</varlistentry>
+ <varlistentry>
+ <term><option>KRPC_TIMEOUT = <replaceable>time</replaceable></option></term>
+ <listitem>
+ <para>The <replaceable>time</replaceable> to wait before KRPC requests timeout.
+ (Default is 14 seconds.)</para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term><option>KRPC_INITIAL_DELAY = <replaceable>time</replaceable></option></term>
+ <listitem>
+ <para>The <replaceable>time</replaceable> to start with when resending KRPC requests using exponential backoff.
+ The request will first be resent after the delay set here.
+ The request will be resent again after twice the delay set here, and so on.
+ e.g. if TIMEOUT is 14 sec., and INITIAL_DELAY is 2 sec., then requests will
+ be resent at times 0, 2 (2 sec. later), and 6 (4 sec. later), and then will
+ timeout at 14. (Default is 2 seconds.)</para>
+ </listitem>
+ </varlistentry>
<varlistentry>
<term><option>SPEW = <replaceable>boolean</replaceable></option></term>
<listitem>