#663: connection limits don't work correctly.

This commit is contained in:
Charles Kerr 2008-01-28 21:05:50 +00:00
parent db160766e4
commit f72ba4b8d8
2 changed files with 1 additions and 9 deletions

View File

@ -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

View File

@ -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. */