aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorMatt Corallo <[email protected]>2012-03-21 22:10:50 -0400
committerMatt Corallo <[email protected]>2012-06-27 15:31:34 +0200
commit9d6cd04b3b73e5de10d6891dcdf151633e582de0 (patch)
treeeaebea0824ab7a2cbe7bd2c6793922893a2989eb /src/net.cpp
parentMerge pull request #1519 from Diapolo/GUI_locale_selection (diff)
downloaddiscoin-9d6cd04b3b73e5de10d6891dcdf151633e582de0.tar.xz
discoin-9d6cd04b3b73e5de10d6891dcdf151633e582de0.zip
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.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/net.cpp b/src/net.cpp
index 77fd334ee..f1073e0a3 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());
}
}
}