Browse Source

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

FIXME: another strategy is required as definitive fix.
miguelfreitas
Miguel Freitas 11 years ago
parent
commit
751e5c2530
  1. 2
      libtorrent/src/session.cpp
  2. 7
      libtorrent/src/session_impl.cpp

2
libtorrent/src/session.cpp

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

7
libtorrent/src/session_impl.cpp

@ -4256,7 +4256,7 @@ retry:
else else
{ {
#if defined TORRENT_VERBOSE_LOGGING || defined TORRENT_LOGGING #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 #endif
// use graceful pause for auto-managed torrents // use graceful pause for auto-managed torrents
t->set_allow_peers(false, true); t->set_allow_peers(false, true);
@ -4321,7 +4321,10 @@ retry:
else else
downloaders.push_back(t); 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()); TORRENT_ASSERT(t->m_resume_data_loaded || !t->valid_metadata());
--hard_limit; --hard_limit;

Loading…
Cancel
Save