frostalf / libtorrent

Automatically exported from code.google.com/p/libtorrent
0 stars 0 forks source link

About tracker scrape #609

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
How can I disable tracker scrape request, because I don't want to use it.

Just disable code as follows ?
From line 3438 to line 3453 in session_impl.cpp (libtorrent 0.16.13)

if (!is_paused())
{
    --m_auto_scrape_time_scaler;
    if (m_auto_scrape_time_scaler <= 0)
    {
        m_auto_scrape_time_scaler = m_settings.auto_scrape_interval
            / (std::max)(1, num_paused_auto_managed);
        if (m_auto_scrape_time_scaler < m_settings.auto_scrape_min_interval)
            m_auto_scrape_time_scaler = m_settings.auto_scrape_min_interval;

        if (least_recently_scraped != m_torrents.end())
        {
            least_recently_scraped->second->scrape_tracker();
        }
    }
}

Original issue reported on code.google.com by voi...@hotmail.com on 25 Apr 2014 at 4:32

GoogleCodeExporter commented 9 years ago
yes, I believe that is enough.

Original comment by arvid.no...@gmail.com on 25 Apr 2014 at 7:09