made the dht be a fallback by default, fixed glitch in earlier fix to make sure block requests are sent properly, fixed problem in peer_connection::second_tick if the piece picker was removed because of the torrent becoming a seed

This commit is contained in:
Arvid Norberg
2007-02-12 09:20:49 +00:00
parent a3bf238143
commit f795be7acf
11 changed files with 204 additions and 140 deletions

View File

@@ -2004,6 +2004,7 @@ struct session_settings
int urlseed_pipeline_size;
int file_pool_size;
bool allow_multiple_connections_per_ip;
bool use_dht_as_fallback;
};
</pre>
<p><tt class="docutils literal"><span class="pre">proxy_ip</span></tt> may be a hostname or ip to a http proxy to use. If this is
@@ -2078,6 +2079,10 @@ connections from the same IP address is not allowed by default, to prevent
abusive behavior by peers. It may be useful to allow such connections in
cases where simulations are run on the same machie, and all peers in a
swarm has the same IP address.</p>
<p><tt class="docutils literal"><span class="pre">use_dht_as_fallback</span></tt> determines how the DHT is used. If this is true
(which it is by default), the DHT will only be used for torrents where
all trackers in its tracker list has failed. Either by an explicit error
message or a time out.</p>
</div>
<div class="section">
<h1><a id="ip-filter" name="ip-filter">ip_filter</a></h1>

View File

@@ -1995,6 +1995,7 @@ that will be sent to the tracker. The user-agent is a good way to identify your
int urlseed_pipeline_size;
int file_pool_size;
bool allow_multiple_connections_per_ip;
bool use_dht_as_fallback;
};
``proxy_ip`` may be a hostname or ip to a http proxy to use. If this is
@@ -2087,6 +2088,11 @@ abusive behavior by peers. It may be useful to allow such connections in
cases where simulations are run on the same machie, and all peers in a
swarm has the same IP address.
``use_dht_as_fallback`` determines how the DHT is used. If this is true
(which it is by default), the DHT will only be used for torrents where
all trackers in its tracker list has failed. Either by an explicit error
message or a time out.
ip_filter
=========