aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorMatt Corallo <matt@bluematt.me>2012-03-21 22:10:50 -0400
committerMatt Corallo <matt@bluematt.me>2012-06-27 15:31:34 +0200
commit9d6cd04b3b73e5de10d6891dcdf151633e582de0 (patch)
treeeaebea0824ab7a2cbe7bd2c6793922893a2989eb /src/net.h
parentbcf0f4117124b2fc070472fb378d5115b7397ea4 (diff)
downloadbitcoin-9d6cd04b3b73e5de10d6891dcdf151633e582de0.tar.xz
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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net.h b/src/net.h
index 29b116eb3b..fa6f700867 100644
--- a/src/net.h
+++ b/src/net.h
@@ -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);