diff options
author | Gavin Andresen <gavinandresen@gmail.com> | 2011-03-03 16:25:05 -0500 |
---|---|---|
committer | Gavin Andresen <gavinandresen@gmail.com> | 2011-03-04 09:44:11 -0500 |
commit | 52248a757b25581339ca6e00cc0da05bfdb04dc8 (patch) | |
tree | 78a64a3656f3fed7a61720d89e3a1f2a70551440 | |
parent | d53070ceb0487ebcf0eb7afb12c0be2dbf9fd4d2 (diff) |
Make send/receive limits bigger (10MB each)v0.3.20.2
-rw-r--r-- | net.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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(); |