diff options
author | Matt Corallo <matt@bluematt.me> | 2012-03-21 22:10:50 -0400 |
---|---|---|
committer | Matt Corallo <matt@bluematt.me> | 2012-06-27 15:31:34 +0200 |
commit | 9d6cd04b3b73e5de10d6891dcdf151633e582de0 (patch) | |
tree | eaebea0824ab7a2cbe7bd2c6793922893a2989eb /src/net.cpp | |
parent | bcf0f4117124b2fc070472fb378d5115b7397ea4 (diff) |
Stop processing messages on full send buffer and dont disconnect.
Also decrease default send/receive buffer sizes from 10 to 5 mb
as this patch makes it easy for a node to fill both instead of
only send.
Diffstat (limited to 'src/net.cpp')
-rw-r--r-- | src/net.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/net.cpp b/src/net.cpp index 77fd334ee4..f1073e0a3e 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -922,11 +922,8 @@ void ThreadSocketHandler2(void* parg) pnode->CloseSocketDisconnect(); } } - if (vSend.size() > SendBufferSize()) { - if (!pnode->fDisconnect) - printf("socket send flood control disconnect (%d bytes)\n", vSend.size()); - pnode->CloseSocketDisconnect(); - } + if (vSend.size() > SendBufferSize()) + printf("socket send buffer full warning (%d bytes)\n", vSend.size()); } } } |