Changeset 6970


Ignore:
Timestamp:
Oct 27, 2008, 6:00:03 PM (12 years ago)
Author:
charles
Message:

(libT) #1359: Transmission shows no tracker error when unable to contact the tracker

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/tracker.c

    r6961 r6970  
    444444        if( bencLoaded )
    445445            tr_bencFree( &benc );
     446    }
     447    else
     448    {
     449        char * buf = tr_strdup_printf( _( "Tracker request failed.  Got HTTP Status Code %ld (%s)" ),
     450                                      responseCode,
     451                                      tr_webGetResponseStr( responseCode ) );
     452        publishWarning( t, buf );
     453        tr_free( buf );
    446454    }
    447455
  • trunk/libtransmission/web.c

    r6961 r6970  
    3030#define DEFAULT_TIMER_MSEC 2000
    3131
     32#if 0
     33#define dbgmsg(...) \
     34    do { \
     35        fprintf( stderr, __VA_ARGS__ ); \
     36        fprintf( stderr, "\n" ); \
     37    } while( 0 )
     38#else
    3239#define dbgmsg( ... ) \
    3340    do { \
     
    3542            tr_deepLog( __FILE__, __LINE__, "web", __VA_ARGS__ ); \
    3643    } while( 0 )
    37 /* #define dbgmsg(...) \
    38  do { fprintf( stderr, __VA_ARGS__ ); fprintf( stderr, "\n" ); } while( 0 ) */
     44#endif
    3945
    4046struct tr_web
     
    114120        }
    115121
     122        curl_easy_setopt( easy, CURLOPT_CONNECTTIMEOUT, 60 );
    116123        curl_easy_setopt( easy, CURLOPT_FOLLOWLOCATION, 1 );
    117124        curl_easy_setopt( easy, CURLOPT_MAXREDIRS, 16 );
Note: See TracChangeset for help on using the changeset viewer.