mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-01 01:36:05 -04:00
Increase default join burst ratelimiting (#9674)
It's legitimate behaviour to try and join a bunch of rooms at once.
This commit is contained in:
parent
0caf2a338e
commit
e550ab17ad
1
changelog.d/9674.misc
Normal file
1
changelog.d/9674.misc
Normal file
@ -0,0 +1 @@
|
|||||||
|
Increase default join ratelimiting burst rate.
|
@ -869,10 +869,10 @@ log_config: "CONFDIR/SERVERNAME.log.config"
|
|||||||
#rc_joins:
|
#rc_joins:
|
||||||
# local:
|
# local:
|
||||||
# per_second: 0.1
|
# per_second: 0.1
|
||||||
# burst_count: 3
|
# burst_count: 10
|
||||||
# remote:
|
# remote:
|
||||||
# per_second: 0.01
|
# per_second: 0.01
|
||||||
# burst_count: 3
|
# burst_count: 10
|
||||||
#
|
#
|
||||||
#rc_3pid_validation:
|
#rc_3pid_validation:
|
||||||
# per_second: 0.003
|
# per_second: 0.003
|
||||||
|
@ -95,11 +95,11 @@ class RatelimitConfig(Config):
|
|||||||
|
|
||||||
self.rc_joins_local = RateLimitConfig(
|
self.rc_joins_local = RateLimitConfig(
|
||||||
config.get("rc_joins", {}).get("local", {}),
|
config.get("rc_joins", {}).get("local", {}),
|
||||||
defaults={"per_second": 0.1, "burst_count": 3},
|
defaults={"per_second": 0.1, "burst_count": 10},
|
||||||
)
|
)
|
||||||
self.rc_joins_remote = RateLimitConfig(
|
self.rc_joins_remote = RateLimitConfig(
|
||||||
config.get("rc_joins", {}).get("remote", {}),
|
config.get("rc_joins", {}).get("remote", {}),
|
||||||
defaults={"per_second": 0.01, "burst_count": 3},
|
defaults={"per_second": 0.01, "burst_count": 10},
|
||||||
)
|
)
|
||||||
|
|
||||||
# Ratelimit cross-user key requests:
|
# Ratelimit cross-user key requests:
|
||||||
@ -187,10 +187,10 @@ class RatelimitConfig(Config):
|
|||||||
#rc_joins:
|
#rc_joins:
|
||||||
# local:
|
# local:
|
||||||
# per_second: 0.1
|
# per_second: 0.1
|
||||||
# burst_count: 3
|
# burst_count: 10
|
||||||
# remote:
|
# remote:
|
||||||
# per_second: 0.01
|
# per_second: 0.01
|
||||||
# burst_count: 3
|
# burst_count: 10
|
||||||
#
|
#
|
||||||
#rc_3pid_validation:
|
#rc_3pid_validation:
|
||||||
# per_second: 0.003
|
# per_second: 0.003
|
||||||
|
Loading…
Reference in New Issue
Block a user