Changeset 5292


Ignore:
Timestamp:
Mar 18, 2008, 7:33:08 PM (14 years ago)
Author:
charles
Message:

#798: 1.06's handling of tracker http 301 redirects can cause a huge strain on tracker

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tracker.c

    r5285 r5292  
    513513    else if( 300<=responseCode && responseCode<=399 )
    514514    {
    515         dbgmsg( t, "got a redirect; retrying immediately" );
     515        const int interval = 20;
     516        dbgmsg( t, "got a redirect. retrying in %d seconds", interval );
    516517
    517518        /* it's a redirect... updateAddresses() has already
    518519         * parsed the redirect, all that's left is to retry */
    519         t->reannounceAt = time( NULL );
     520        t->reannounceAt = time( NULL ) + interval;
    520521        t->manualAnnounceAllowedAt = time( NULL ) + t->announceMinIntervalSec;
    521522    }
Note: See TracChangeset for help on using the changeset viewer.