mirror of
https://github.com/transmission/transmission
synced 2025-02-04 13:32:19 +00:00
#663: connection limits don't work correctly.
This commit is contained in:
parent
db160766e4
commit
f72ba4b8d8
2 changed files with 1 additions and 9 deletions
|
@ -376,11 +376,7 @@ socketWasReserved( int fd )
|
|||
static int
|
||||
getSocketMax( struct tr_fd_s * gFd )
|
||||
{
|
||||
#if 0
|
||||
return gFd->normalMax;
|
||||
#else
|
||||
return MIN( gFd->normalMax, 200 );
|
||||
#endif
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
@ -959,11 +959,7 @@ ensureAtomExists( Torrent * t, const struct in_addr * addr, uint16_t port, uint8
|
|||
static int
|
||||
getMaxPeerCount( const tr_torrent * tor UNUSED )
|
||||
{
|
||||
#if 0
|
||||
return t->tor->maxConnectedPeers;
|
||||
#else
|
||||
return 50;
|
||||
#endif
|
||||
return tor->maxConnectedPeers;
|
||||
}
|
||||
|
||||
/* FIXME: this is kind of a mess. */
|
||||
|
|
Loading…
Reference in a new issue