This commit is contained in:
Charles Kerr 2007-08-17 03:13:42 +00:00
parent c449a4665d
commit 0c60e29934
1 changed files with 6 additions and 5 deletions

View File

@ -42,10 +42,10 @@
#define DEFAULT_ANNOUNCE_INTERVAL_MSEC (MINUTES_TO_MSEC(20)) #define DEFAULT_ANNOUNCE_INTERVAL_MSEC (MINUTES_TO_MSEC(20))
/* this is how long we'll leave a scrape request hanging before timeout */ /* this is how long we'll leave a scrape request hanging before timeout */
#define SCRAPE_TIMEOUT_INTERVAL_SEC 8 #define SCRAPE_TIMEOUT_INTERVAL_SEC 10
/* this is how long we'll leave a tracker request hanging before timeout */ /* this is how long we'll leave a tracker request hanging before timeout */
#define REQ_TIMEOUT_INTERVAL_SEC 8 #define REQ_TIMEOUT_INTERVAL_SEC 15
/* the number of peers that is our goal */ /* the number of peers that is our goal */
#define NUMWANT 150 #define NUMWANT 150
@ -606,7 +606,7 @@ onTrackerScrapeNow( void * vt )
{ {
Tracker * t = (Tracker*) vt; Tracker * t = (Tracker*) vt;
assert( !tr_ptrArrayEmpty( t->scraping ) ); assert( tr_ptrArrayEmpty( t->scraping ) );
if( !tr_ptrArrayEmpty( t->scrapeQueue ) ) if( !tr_ptrArrayEmpty( t->scrapeQueue ) )
{ {
@ -971,8 +971,9 @@ void
tr_trackerStart( Torrent * tor ) tr_trackerStart( Torrent * tor )
{ {
tr_peerIdNew( tor->peer_id, sizeof(tor->peer_id) ); tr_peerIdNew( tor->peer_id, sizeof(tor->peer_id) );
assert( !tor->reannounceTag && "torrent's already started!" );
sendTrackerRequest( tor, "started" ); if( !tor->reannounceTag )
sendTrackerRequest( tor, "started" );
} }
void void