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.h | |
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.h')
-rw-r--r-- | src/net.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -26,8 +26,8 @@ extern int nBestHeight; -inline unsigned int ReceiveBufferSize() { return 1000*GetArg("-maxreceivebuffer", 10*1000); } -inline unsigned int SendBufferSize() { return 1000*GetArg("-maxsendbuffer", 10*1000); } +inline unsigned int ReceiveBufferSize() { return 1000*GetArg("-maxreceivebuffer", 5*1000); } +inline unsigned int SendBufferSize() { return 1000*GetArg("-maxsendbuffer", 5*1000); } void AddOneShot(std::string strDest); bool RecvLine(SOCKET hSocket, std::string& strLine); |