mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-18 13:04:19 -05:00
Fix bug in replication where response is cached (#15024)
This commit is contained in:
parent
d83178a33a
commit
c78c67c5a9
1
changelog.d/15024.bugfix
Normal file
1
changelog.d/15024.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Fix bug where retried replication requests would return a failure. Introduced in v1.76.0.
|
@ -426,6 +426,8 @@ class ReplicationEndpoint(metaclass=abc.ABCMeta):
|
||||
code, response = await self.response_cache.wrap(
|
||||
txn_id, self._handle_request, request, content, **kwargs
|
||||
)
|
||||
# Take a copy so we don't mutate things in the cache.
|
||||
response = dict(response)
|
||||
else:
|
||||
# The `@cancellable` decorator may be applied to `_handle_request`. But we
|
||||
# told `HttpServer.register_paths` that our handler is `_check_auth_and_handle`,
|
||||
|
Loading…
Reference in New Issue
Block a user