Maximum number of half-open connections can now be changed from program preferences (default is now 50 instead of unlimited)

This commit is contained in:
Christophe Dumez 2010-03-25 19:16:43 +00:00
parent daff6dce4c
commit 63457c034f
6 changed files with 32 additions and 4 deletions

View file

@ -445,6 +445,8 @@ void Bittorrent::configureSession() {
// Include overhead in transfer limits
sessionSettings.rate_limit_ip_overhead = Preferences::includeOverheadInLimits();
// Bittorrent
// * Max Half-open connections
s->set_max_half_open_connections(Preferences::getMaxHalfOpenConnections());
// * Max connections limit
setMaxConnections(Preferences::getMaxConnecs());
// * Max connections per torrent limit