Tune defaults

This commit is contained in:
9seconds
2021-04-02 21:58:22 +03:00
parent 7bffdcdf4a
commit 5d5b77d73b
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
package antireplay
const (
DefaultMaxSize = 10 * 1024 * 1024 // 10mib
DefaultErrorRate = 0.0001
DefaultMaxSize = 1024 * 1024 // 1MiB
DefaultErrorRate = 0.001
)
+2 -2
View File
@@ -137,10 +137,10 @@ enabled = true
# approximate we try hard to store data quite dense but it is possible
# that we can go over this limit for 10-20% under some conditions and
# architectures.
max-size = "16mb"
max-size = "1mib"
# we use stable bloom filters for anti-replay cache. This helps
# to maintain a desired error ratio.
error-rate = 0.0001
error-rate = 0.001
# You can protect proxies by using different blocklists. If client has
# ip from the given range, we do not try to do a proper handshake. We
+1 -1
View File
@@ -3,5 +3,5 @@ package timeattack
import "time"
const (
DefaultDuration = time.Second
DefaultDuration = 5 * time.Second
)