Make initial connection size of bittorrent 40

pull/1/head
Tatsuhiro Tsujikawa 2007-08-09 14:47:47 +00:00
parent a405d0238e
commit 62e2056d09
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@
#include "common.h" #include "common.h"
#include "SharedHandle.h" #include "SharedHandle.h"
#define MIN_PEERS 15 #define MIN_PEERS 40
class BtRuntime { class BtRuntime {
private: private:

View File

@ -278,7 +278,7 @@ void DefaultBtInteractive::detectMessageFlooding() {
void DefaultBtInteractive::checkActiveInteraction() void DefaultBtInteractive::checkActiveInteraction()
{ {
int32_t interval = 5*60; int32_t interval = 5*60;
if(inactiveCheckPoint.elapsed(interval) && btRuntime->getConnections() >= MAX_PEERS) { if(inactiveCheckPoint.elapsed(interval)) {
throw new DlAbortEx(EX_DROP_INACTIVE_CONNECTION, interval); throw new DlAbortEx(EX_DROP_INACTIVE_CONNECTION, interval);
} }
} }