Changeset 14137


Ignore:
Timestamp:
Jul 21, 2013, 9:10:28 PM (9 years ago)
Author:
jordan
Message:

(trunk, libT) #5432 'on scrape and announce failures, the retry interval is longer than intended' -- fixed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/announcer.c

    r14124 r14137  
    963963getRetryInterval (const tr_tracker * t)
    964964{
     965  assert (t->consecutiveFailures >= 1);
     966
    965967  switch (t->consecutiveFailures)
    966968    {
    967       case 0:  return 20;
    968       case 1:  return tr_cryptoWeakRandInt (60) + (60 * 5);
    969       case 2:  return tr_cryptoWeakRandInt (60) + (60 * 15);
    970       case 3:  return tr_cryptoWeakRandInt (60) + (60 * 30);
    971       case 4:  return tr_cryptoWeakRandInt (60) + (60 * 60);
     969      case 0:  return 0;
     970      case 1:  return 20;
     971      case 2:  return tr_cryptoWeakRandInt (60) + (60 * 5);
     972      case 3:  return tr_cryptoWeakRandInt (60) + (60 * 15);
     973      case 4:  return tr_cryptoWeakRandInt (60) + (60 * 30);
     974      case 5:  return tr_cryptoWeakRandInt (60) + (60 * 60);
    972975      default: return tr_cryptoWeakRandInt (60) + (60 * 120);
    973976    }
Note: See TracChangeset for help on using the changeset viewer.