Changeset 7721


Ignore:
Timestamp:
Jan 16, 2009, 5:29:42 PM (12 years ago)
Author:
charles
Message:

(trunk libT) minor tweaks to reduce libtransmission shear between trunk and 1.5x

Location:
trunk/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.c

    r7663 r7721  
    130130
    131131void
    132 tr_suspectAddress( const tr_address * a, const char * source )
    133 {
     132tr_suspectAddress( const tr_address * a UNUSED, const char * source UNUSED )
     133{
     134/* this is overkill for a production environment,
     135 * but useful in the nightly builds, so only compile it into the nightlies */
     136#ifdef TR_UNSTABLE
    134137    /* be really aggressive in what we report */
    135138    if( a->type == TR_AF_INET && !( ntohl( a->addr.addr4.s_addr ) & 0xff000000 ) )
     
    157160            tr_err(  "Funny looking address %s from %s", tr_ntop_non_ts( a ), source );
    158161    }
     162#endif
    159163}
    160164
  • trunk/libtransmission/peer-msgs.c

    r7710 r7721  
    16211621
    16221622        default:
     1623            ret = READ_ERR;
    16231624            assert( 0 );
    16241625    }
  • trunk/libtransmission/web.c

    r7658 r7721  
    129129        curl_easy_setopt( easy, CURLOPT_CONNECTTIMEOUT, 120L );
    130130        curl_easy_setopt( easy, CURLOPT_FOLLOWLOCATION, 1L );
     131        curl_easy_setopt( easy, CURLOPT_FORBID_REUSE, 1L );
    131132        curl_easy_setopt( easy, CURLOPT_NOSIGNAL, 1L );
    132133        curl_easy_setopt( easy, CURLOPT_PRIVATE, task );
Note: See TracChangeset for help on using the changeset viewer.