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

This commit is contained in:
Charles Kerr 2009-01-16 17:29:42 +00:00
parent c99f941d16
commit bc2b7fcb03
3 changed files with 7 additions and 1 deletions

View File

@ -129,8 +129,11 @@ tr_netInit( void )
}
void
tr_suspectAddress( const tr_address * a, const char * source )
tr_suspectAddress( const tr_address * a UNUSED, const char * source UNUSED )
{
/* this is overkill for a production environment,
* but useful in the nightly builds, so only compile it into the nightlies */
#ifdef TR_UNSTABLE
/* be really aggressive in what we report */
if( a->type == TR_AF_INET && !( ntohl( a->addr.addr4.s_addr ) & 0xff000000 ) )
tr_err( "Funny looking address %s from %s", tr_ntop_non_ts( a ), source );
@ -156,6 +159,7 @@ tr_suspectAddress( const tr_address * a, const char * source )
if( !good && !IN6_IS_ADDR_V4MAPPED( &a->addr.addr6 ) )
tr_err( "Funny looking address %s from %s", tr_ntop_non_ts( a ), source );
}
#endif
}
const char *

View File

@ -1620,6 +1620,7 @@ canRead( tr_peerIo * io, void * vmsgs, size_t * piece )
ret = readBtMessage( msgs, in, inlen ); break;
default:
ret = READ_ERR;
assert( 0 );
}

View File

@ -128,6 +128,7 @@ addTask( void * vtask )
curl_easy_setopt( easy, CURLOPT_DNS_CACHE_TIMEOUT, 3600L );
curl_easy_setopt( easy, CURLOPT_CONNECTTIMEOUT, 120L );
curl_easy_setopt( easy, CURLOPT_FOLLOWLOCATION, 1L );
curl_easy_setopt( easy, CURLOPT_FORBID_REUSE, 1L );
curl_easy_setopt( easy, CURLOPT_NOSIGNAL, 1L );
curl_easy_setopt( easy, CURLOPT_PRIVATE, task );
curl_easy_setopt( easy, CURLOPT_SSL_VERIFYHOST, 0L );