summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmir Taaki <genjix@riseup.net>2014-03-24 20:25:40 (GMT)
committer Amir Taaki <genjix@riseup.net>2014-03-24 20:25:40 (GMT)
commitd73e6f03771c6e5e4ced166151d99f352da0b626 (patch)
treeeb9f19c722981aa14a606688849136a6ce2dd997
parent0e0ec6d03654ab72ef4f348df7219dfa38b4c946 (diff)
lower connection watermark from 2000 every 5 seconds to 10 per second.
-rw-r--r--src/network/protocol.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/protocol.cpp b/src/network/protocol.cpp
index 32374a6..6f4ddb6 100644
--- a/src/network/protocol.cpp
+++ b/src/network/protocol.cpp
@@ -30,8 +30,8 @@ using std::placeholders::_2;
using boost::posix_time::time_duration;
using boost::posix_time::seconds;
-constexpr size_t watermark_limit = 2000;
-const time_duration watermark_reset_interval = seconds(5);
+constexpr size_t watermark_limit = 10;
+const time_duration watermark_reset_interval = seconds(1);
static std::string pretty(const ip_address_type& ip)
{