Changeset 6281


Ignore:
Timestamp:
Jul 2, 2008, 1:17:57 AM (13 years ago)
Author:
charles
Message:

(libT) #1045: gracefully handle trackers that return a scrape interval that's too low

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tracker.c

    r6251 r6281  
    491491                    if(( tr_bencDictFindInt( flags, "min_request_interval", &itmp )))
    492492                        t->scrapeIntervalSec = i;
     493
     494                /* as per ticket #1045, safeguard against trackers returning
     495                 * a very low min_request_interval... */
     496                if( t->scrapeIntervalSec < DEFAULT_SCRAPE_INTERVAL_SEC )
     497                    t->scrapeIntervalSec = DEFAULT_SCRAPE_INTERVAL_SEC;
    493498
    494499                tr_ndbg( t->name, "Scrape successful.  Rescraping in %d seconds.",
Note: See TracChangeset for help on using the changeset viewer.