don't check non-auto managed torrents against limits for now.

FIXME: another strategy is required as definitive fix.
This commit is contained in:
Miguel Freitas 2014-02-25 16:47:04 -03:00
parent aa312dfc39
commit 751e5c2530
2 changed files with 6 additions and 3 deletions

View File

@ -1321,7 +1321,7 @@ namespace libtorrent
, dht_upload_rate_limit(8000)
, unchoke_slots_limit(8)
, half_open_limit(0)
, connections_limit(200)
, connections_limit(600)
, connections_slack(10)
, utp_target_delay(100) // milliseconds
, utp_gain_factor(1500) // bytes per rtt

View File

@ -4256,7 +4256,7 @@ retry:
else
{
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_LOGGING
t->log_to_all_peers("AUTO MANAGER PAUSING TORRENT");
//t->log_to_all_peers("AUTO MANAGER PAUSING TORRENT");
#endif
// use graceful pause for auto-managed torrents
t->set_allow_peers(false, true);
@ -4321,7 +4321,10 @@ retry:
else
downloaders.push_back(t);
}
else if (!t->is_paused())
//else if (!t->is_paused())
// [MF] don't check non-auto managed torrents against limits for now.
// FIXME: another strategy is required as definitive fix.
else if (!t->is_paused() && t->is_auto_managed())
{
TORRENT_ASSERT(t->m_resume_data_loaded || !t->valid_metadata());
--hard_limit;