introduced a proper half open TCP connection limit. Also exposed the connection queue to let clients use the same connection limiter as libtorrent. UPnP connections and tracker connection are now also limited as well as peer connections and web seeds
This commit is contained in:
@@ -2175,6 +2175,7 @@ that will be sent to the tracker. The user-agent is a good way to identify your
|
||||
bool allow_multiple_connections_per_ip;
|
||||
int max_failcount;
|
||||
int min_reconnect_time;
|
||||
int peer_connect_timeout;
|
||||
bool use_dht_as_fallback;
|
||||
};
|
||||
|
||||
@@ -2265,6 +2266,12 @@ decremented by one, allowing another try.
|
||||
``min_reconnect_time`` is the time to wait between connection attempts. If
|
||||
the peer fails, the time is multiplied by fail counter.
|
||||
|
||||
``peer_connect_timeout`` the number of seconds to wait after a connection
|
||||
attempt is initiated to a peer until it is considered as having timed out.
|
||||
The default is 10 seconds. This setting is especially important in case
|
||||
the number of half-open connections are limited, since stale half-open
|
||||
connection may delay the connection of other peers considerably.
|
||||
|
||||
``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
|
||||
|
Reference in New Issue
Block a user