Compare commits

...

2 Commits

Author SHA1 Message Date
Gavin Andresen
52248a757b Make send/receive limits bigger (10MB each) 2011-03-04 09:44:11 -05:00
Gavin Andresen
d53070ceb0 Bump version to 0.3.20.02 2011-03-04 09:44:00 -05:00
2 changed files with 3 additions and 3 deletions

View File

@@ -741,7 +741,7 @@ void ThreadSocketHandler2(void* parg)
CDataStream& vRecv = pnode->vRecv;
unsigned int nPos = vRecv.size();
if (nPos > 1000*GetArg("-maxreceivebuffer", 2*1000)) {
if (nPos > 1000*GetArg("-maxreceivebuffer", 10*1000)) {
if (!pnode->fDisconnect)
printf("socket recv flood control disconnect (%d bytes)\n", vRecv.size());
pnode->CloseSocketDisconnect();
@@ -806,7 +806,7 @@ void ThreadSocketHandler2(void* parg)
pnode->CloseSocketDisconnect();
}
}
if (vSend.size() > 1000*GetArg("-maxsendbuffer", 256)) {
if (vSend.size() > 1000*GetArg("-maxsendbuffer", 10*1000)) {
if (!pnode->fDisconnect)
printf("socket send flood control disconnect (%d bytes)\n", vSend.size());
pnode->CloseSocketDisconnect();

View File

@@ -25,7 +25,7 @@ class CDataStream;
class CAutoFile;
static const unsigned int MAX_SIZE = 0x02000000;
static const int VERSION = 32001;
static const int VERSION = 32002;
static const char* pszSubVer = "";
static const bool VERSION_IS_BETA = true;