Changeset 5719


Ignore:
Timestamp:
Apr 29, 2008, 1:21:42 AM (14 years ago)
Author:
charles
Message:

#903: "1.11: Not making use of Tier 2 tracker on Tier 1 error"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tracker.c

    r5709 r5719  
    226226
    227227static void
    228 updateAddresses( tr_tracker * t, long response_code, int * tryAgain )
    229 {
    230     int moveToNextAddress = FALSE;
     228updateAddresses( tr_tracker  * t,
     229                 long          response_code,
     230                 int           moveToNextAddress,
     231                 int         * tryAgain )
     232{
    231233    tr_torrent * torrent = tr_torrentFindFromHash( t->session, t->hash );
     234
    232235
    233236    if( !response_code ) /* tracker didn't respond */
     
    255258
    256259    *tryAgain = moveToNextAddress;
    257 
    258260    if( moveToNextAddress )
    259261    {
     
    327329                   void          * torrent_hash )
    328330{
     331    int moveToNextAddress = FALSE;
    329332    int tryAgain;
    330333    tr_tracker * t;
     
    352355            const char * str;
    353356
    354             if(( tr_bencDictFindStr( &benc, "failure reason", &str )))
    355                 publishErrorMessageAndStop( t, str );
     357            if(( tr_bencDictFindStr( &benc, "failure reason", &str ))) {
     358               // publishErrorMessageAndStop( t, str );
     359                moveToNextAddress = TRUE;
     360                publishMessage( t, str, TR_TRACKER_ERROR );
     361            }
    356362
    357363            if(( tr_bencDictFindStr( &benc, "warning message", &str )))
     
    399405    }
    400406
    401     updateAddresses( t, responseCode, &tryAgain );
     407    updateAddresses( t, responseCode, moveToNextAddress, &tryAgain );
    402408
    403409    /**
     
    460466                  void         * torrent_hash )
    461467{
     468    int moveToNextAddress = FALSE;
    462469    int tryAgain;
    463470    tr_tracker * t;
     
    511518            }
    512519        }
     520        else
     521            moveToNextAddress = TRUE;
    513522
    514523        if( bencLoaded )
     
    516525    }
    517526
    518     updateAddresses( t, responseCode, &tryAgain );
     527    updateAddresses( t, responseCode, moveToNextAddress, &tryAgain );
    519528
    520529    /**
Note: See TracChangeset for help on using the changeset viewer.