mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-19 14:24:18 -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(
|
code, response = await self.response_cache.wrap(
|
||||||
txn_id, self._handle_request, request, content, **kwargs
|
txn_id, self._handle_request, request, content, **kwargs
|
||||||
)
|
)
|
||||||
|
# Take a copy so we don't mutate things in the cache.
|
||||||
|
response = dict(response)
|
||||||
else:
|
else:
|
||||||
# The `@cancellable` decorator may be applied to `_handle_request`. But we
|
# The `@cancellable` decorator may be applied to `_handle_request`. But we
|
||||||
# told `HttpServer.register_paths` that our handler is `_check_auth_and_handle`,
|
# told `HttpServer.register_paths` that our handler is `_check_auth_and_handle`,
|
||||||
|
Loading…
Reference in New Issue
Block a user