mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
parent
d8be7d493d
commit
c96ab31dff
1
changelog.d/10118.bugfix
Normal file
1
changelog.d/10118.bugfix
Normal file
@ -0,0 +1 @@
|
|||||||
|
Fix a bug introduced in Synapse 1.33.0 which caused replication requests to fail when receiving a lot of very large events via federation.
|
@ -3056,8 +3056,9 @@ class FederationHandler(BaseHandler):
|
|||||||
"""
|
"""
|
||||||
instance = self.config.worker.events_shard_config.get_instance(room_id)
|
instance = self.config.worker.events_shard_config.get_instance(room_id)
|
||||||
if instance != self._instance_name:
|
if instance != self._instance_name:
|
||||||
# Limit the number of events sent over federation.
|
# Limit the number of events sent over replication. We choose 200
|
||||||
for batch in batch_iter(event_and_contexts, 1000):
|
# here as that is what we default to in `max_request_body_size(..)`
|
||||||
|
for batch in batch_iter(event_and_contexts, 200):
|
||||||
result = await self._send_events(
|
result = await self._send_events(
|
||||||
instance_name=instance,
|
instance_name=instance,
|
||||||
store=self.store,
|
store=self.store,
|
||||||
|
Loading…
Reference in New Issue
Block a user