Skip to content

Commit

Permalink
Make send/receive limits bigger (10MB each)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinandresen committed Mar 4, 2011
1 parent d53070c commit 52248a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net.cpp
Expand Up @@ -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();
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 52248a7

Please sign in to comment.