Changeset 10639


Ignore:
Timestamp:
May 11, 2010, 1:32:29 PM (11 years ago)
Author:
charles
Message:

(trunk libT) #3203 "torrents halted after 'Tracker returned a 4xx message'" -- fixed in trunk for 2.00

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/announcer.c

    r10635 r10639  
    14541454            tier->manualAnnounceAllowedAt = now + tier->announceMinIntervalSec;
    14551455        }
     1456        else if( ( responseCode == 404 ) || ( 500 <= responseCode && responseCode <= 599 ) )
     1457        {
     1458            /* 404: The requested resource could not be found but may be
     1459             * available again in the future.  Subsequent requests by
     1460             * the client are permissible. */
     1461
     1462            /* 5xx: indicate cases in which the server is aware that it
     1463             * has erred or is incapable of performing the request.
     1464             * So we pause a bit and try again. */
     1465
     1466            const int interval = getRetryInterval( tier->currentTracker->host );
     1467            tier->manualAnnounceAllowedAt = ~(time_t)0;
     1468            tierAddAnnounce( tier, announceEvent, now + interval );
     1469        }
    14561470        else if( 400 <= responseCode && responseCode <= 499 )
    14571471        {
     
    14631477            tier->announceAt = 0;
    14641478            tier->manualAnnounceAllowedAt = ~(time_t)0;
    1465         }
    1466         else if( 500 <= responseCode && responseCode <= 599 )
    1467         {
    1468             /* Response status codes beginning with the digit "5" indicate
    1469              * cases in which the server is aware that it has erred or is
    1470              * incapable of performing the request.  So we pause a bit and
    1471              * try again. */
    1472             const int interval = getRetryInterval( tier->currentTracker->host );
    1473             tier->manualAnnounceAllowedAt = ~(time_t)0;
    1474             tierAddAnnounce( tier, announceEvent, now + interval );
    14751479        }
    14761480        else
Note: See TracChangeset for help on using the changeset viewer.