Changeset 7597
- Timestamp:
- Jan 3, 2009, 7:23:26 AM (12 years ago)
- Location:
- trunk/libtransmission
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/peer-mgr.c
r7591 r7597 62 62 63 63 /* max # of peers to ask fer per torrent per reconnect pulse */ 64 MAX_RECONNECTIONS_PER_PULSE = 4,64 MAX_RECONNECTIONS_PER_PULSE = 16, 65 65 66 66 /* max number of peers to ask for per second overall. 67 67 * this throttle is to avoid overloading the router */ 68 MAX_CONNECTIONS_PER_SECOND = 8,68 MAX_CONNECTIONS_PER_SECOND = 32, 69 69 70 70 /* number of unchoked peers per torrent. … … 1176 1176 getPeerCount( const Torrent * t ) 1177 1177 { 1178 return tr_ptrArraySize( &t->peers ) + tr_ptrArraySize( &t->outgoingHandshakes );1178 return tr_ptrArraySize( &t->peers );// + tr_ptrArraySize( &t->outgoingHandshakes ); 1179 1179 } 1180 1180 … … 2275 2275 struct tr_peer ** connections = getPeersToClose( t, &nBad ); 2276 2276 2277 if( nBad || nCandidates )2277 //if( nBad || nCandidates ) 2278 2278 tordbg( t, "reconnect pulse for [%s]: %d bad connections, " 2279 2279 "%d connection candidates, %d atoms, max per pulse is %d", … … 2297 2297 } 2298 2298 2299 tordbg( t, "nCandidates is %d, MAX_RECONNECTIONS_PER_PULSE is %d, getPeerCount(t) is %d, getMaxPeerCount(t) is %d, newConnectionsThisSecond is %d, MAX_CONNECTIONS_PER_SECOND is %d", 2300 (int)nCandidates, (int)MAX_RECONNECTIONS_PER_PULSE, (int)getPeerCount( t ), (int)getMaxPeerCount( t->tor ), (int)newConnectionsThisSecond, (int)MAX_CONNECTIONS_PER_SECOND ); 2301 2299 2302 /* add some new ones */ 2300 2303 for( i = 0; ( i < nCandidates ) -
trunk/libtransmission/tracker.c
r7578 r7597 60 60 61 61 /* the value of the 'numwant' argument passed in tracker requests. */ 62 NUMWANT = 80,62 NUMWANT = 200, 63 63 64 64 /* the length of the 'key' argument passed in tracker requests */
Note: See TracChangeset
for help on using the changeset viewer.