Commit 6af01ff
committed
feat: [#1096] reset banning IP list every 1 minutes
Since the new solution with a HashMap consumes more memory, we should
keep hte banning list short. The drawback is clients will be allowed to
send more wrong connections IDs. However, sending 10 requests with wrong
connection IDs every 2 minutos should not affect much the performance,
unless we have many IPs, and in that case we would have a problem with
memory anyway.
In the future Sys Admin could inject this via a setting value.1 parent 9eb9848 commit 6af01ff
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
0 commit comments