Ignore:
Timestamp:
Nov 20, 2007, 3:01:59 AM (15 years ago)
Author:
charles
Message:

finish backport the speed/stability improvements from trunk to 0.9x.
sync some text strings in the gtk+ client up with the mac client.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.9x/libtransmission/tracker.c

    r3827 r3899  
    1818#include <libgen.h> /* basename */
    1919
    20 #include <sys/queue.h> /* libevent needs this */
    21 #include <sys/types.h> /* libevent needs this */
     20#include <sys/queue.h> /* evhttp.h needs this */
    2221#include <event.h>
    2322#include <evhttp.h>
     
    626625   
    627626    evbuffer_add_printf( buf, "%s"
    628                               "%sinfo_hash=%s"
     627                              "%cinfo_hash=%s"
    629628                              "&peer_id=%s"
    630629                              "&port=%d"
     
    641640                              "%s%s",
    642641        ann,
    643         ( strchr(ann, '?') == NULL ? "?" : "&" ),
     642        strchr(ann, '?') ? '&' : '?',
    644643        t->escaped,
    645644        t->peer_id,
     
    715714    const char * warning;
    716715    tr_tracker * t;
    717     int err = 0;
    718716    int responseCode;
    719717
     
    799797            tr_bencFree( &benc );
    800798    }
    801     else
    802     {
    803         tr_inf( "Bad response for torrent '%s' on request '%s' "
    804                 "... trying again in 30 seconds",
    805                 t->name, t->lastRequest );
    806 
    807         err = 1;
    808     }
    809799
    810800    if (( warning = updateAddresses( t, req ) )) {
     
    851841    else if( 500<=responseCode && responseCode<=599 )
    852842    {
    853         dbgmsg( t, "got a 5xx error... retrying in 15 seconds." );
     843        dbgmsg( t, "Got a 5xx error... retrying in 15 seconds." );
    854844
    855845        /* Response status codes beginning with the digit "5" indicate
     
    864854    else
    865855    {
    866         dbgmsg( t, "unhandled condition... retrying in 120 seconds." );
     856        dbgmsg( t, "Invalid response from tracker... retrying in 120 seconds." );
    867857
    868858        /* WTF did we get?? */
Note: See TracChangeset for help on using the changeset viewer.