diff options
author | Matt Corallo <matt@bluematt.me> | 2012-07-01 04:17:26 +0200 |
---|---|---|
committer | Matt Corallo <matt@bluematt.me> | 2012-07-01 04:17:26 +0200 |
commit | 6d6c2afb2b014ecaf43fea2690f6021f78f57488 (patch) | |
tree | 30f65a9ee3956e0c0a73ce75ef9f98faa516b946 /src | |
parent | 3c3cb60a904ee7c34ebda1b18fd68c958e2eec53 (diff) |
Change default send buffer to 1Mb.
Diffstat (limited to 'src')
-rw-r--r-- | src/init.cpp | 2 | ||||
-rw-r--r-- | src/net.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp index b25d52200f..5c87af9112 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -239,7 +239,7 @@ std::string HelpMessage() " -banscore=<n> " + _("Threshold for disconnecting misbehaving peers (default: 100)") + "\n" + " -bantime=<n> " + _("Number of seconds to keep misbehaving peers from reconnecting (default: 86400)") + "\n" + " -maxreceivebuffer=<n> " + _("Maximum per-connection receive buffer, <n>*1000 bytes (default: 5000)") + "\n" + - " -maxsendbuffer=<n> " + _("Maximum per-connection send buffer, <n>*1000 bytes (default: 5000)") + "\n" + + " -maxsendbuffer=<n> " + _("Maximum per-connection send buffer, <n>*1000 bytes (default: 1000)") + "\n" + #ifdef USE_UPNP #if USE_UPNP " -upnp " + _("Use UPnP to map the listening port (default: 1 when listening)") + "\n" + @@ -27,7 +27,7 @@ extern int nBestHeight; inline unsigned int ReceiveBufferSize() { return 1000*GetArg("-maxreceivebuffer", 5*1000); } -inline unsigned int SendBufferSize() { return 1000*GetArg("-maxsendbuffer", 5*1000); } +inline unsigned int SendBufferSize() { return 1000*GetArg("-maxsendbuffer", 1*1000); } void AddOneShot(std::string strDest); bool RecvLine(SOCKET hSocket, std::string& strLine); |