#define IO_TIMEOUT_SECS 8
-/* arbitrary */
-#define TR_RDBUF (1024*8)
+/* the size of a typical request message */
+#define TR_RDBUF ((1024*16) + 13)
/**
***
KEEPALIVE_INTERVAL_SECS = 90,
PEX_INTERVAL = (90 * 1000), /* msec between sendPex() calls */
- PEER_PULSE_INTERVAL = (100), /* msec between pulse() calls */
+ PEER_PULSE_INTERVAL = (50), /* msec between pulse() calls */
RATE_PULSE_INTERVAL = (250), /* msec between ratePulse() calls */
MAX_QUEUE_SIZE = (100),
updatePeerProgress( msgs );
maybeSendFastAllowedSet( msgs );
peerIsSeed = msgs->info->progress >= 1.0;
- tr_peerMsgsSetChoke( msgs, clientIsSeed && peerIsSeed );
fireNeedReq( msgs );
break;
}
t->lastScrapeResponse = -1;
t->manualAnnounceAllowedAt = ~(time_t)0;
t->name = tr_strdup( info->name );
- t->randOffset = tr_rand( 120 );
+ t->randOffset = tr_rand( 30 );
memcpy( t->hash, info->hash, SHA_DIGEST_LENGTH );
escape( t->escaped, info->hash, SHA_DIGEST_LENGTH );
generateKeyParam( t->key_param, KEYLEN );