mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-08 22:08:00 +00:00
don't check non-auto managed torrents against limits for now.
FIXME: another strategy is required as definitive fix.
This commit is contained in:
parent
aa312dfc39
commit
751e5c2530
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user