Skip to content
Permalink
Browse files

Merge PR #3512: Lower bucket params

  • Loading branch information...
davidebeatrici committed Aug 31, 2018
2 parents 44b9004 + 4761ca4 commit f7221c14efa14c4c73b64782673d309e97f87e61
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/murmur/ServerUser.cpp
@@ -138,8 +138,8 @@ unsigned long millisecondsBetween(time_point start, time_point end) {

#endif

// Rate limiting: burst up to 30, 4 message per sec limit over longer time
LeakyBucket::LeakyBucket() : tokensPerSec(4), maxTokens(30), currentTokens(0) {
// Rate limiting: burst up to 5, 1 message per sec limit over longer time
LeakyBucket::LeakyBucket() : tokensPerSec(1), maxTokens(5), currentTokens(0) {
lastUpdate = now();
}

0 comments on commit f7221c1

Please sign in to comment.
You can’t perform that action at this time.