forked-synapse/changelog.d
Jonathan de Jong f5c93fc993
Fix #8518 (sync requests being cached wrongly on timeout) (#9358)
This fixes #8518 by adding a conditional check on `SyncResult` in a function when `prev_stream_token == current_stream_token`, as a sanity check. In `CachedResponse.set.<remove>()`, the result is immediately popped from the cache if the conditional function returns "false".

This prevents the caching of a timed-out `SyncResult` (that has `next_key` as the stream key that produced that `SyncResult`). The cache is prevented from returning a `SyncResult` that makes the client request the same stream key over and over again, effectively making it stuck in a loop of requesting and getting a response immediately for as long as the cache keeps those values.

Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>
2021-02-24 13:57:00 +00:00
..
.gitignore Correct attrs package name in requirements (#3492) 2018-07-07 10:46:59 +10:00
8957.feature Ratelimit cross-user key sharing requests. (#8957) 2021-02-19 13:20:34 -05:00
8978.feature Add an order_by field to list users' media admin API. (#8978) 2021-02-22 14:38:51 -05:00
9203.feature Add configs to make profile data more private (#9203) 2021-02-19 09:50:41 +00:00
9358.misc Fix #8518 (sync requests being cached wrongly on timeout) (#9358) 2021-02-24 13:57:00 +00:00
9383.feature Add a config option to prioritise local users in user directory search results (#9383) 2021-02-19 11:02:03 +00:00
9385.feature Clean up the user directory sample config section (#9385) 2021-02-22 11:44:31 +00:00
9402.bugfix Be smarter about which hosts to send presence to when processing room joins (#9402) 2021-02-19 11:37:29 +00:00
9416.bugfix Remove cache for get_shared_rooms_for_users (#9416) 2021-02-22 16:52:45 +00:00
9432.misc Add documentation and type hints to parse_duration. (#9432) 2021-02-19 08:32:21 -05:00
9438.feature Newsfile 2021-02-18 17:05:32 +00:00
9440.bugfix Support not providing an IdP icon when choosing a username. (#9440) 2021-02-19 07:48:46 -05:00
9449.bugfix Include newly added sequences in the port DB script. (#9449) 2021-02-23 07:33:24 -05:00
9462.misc Remove vestiges of uploads_path config (#9462) 2021-02-22 19:54:49 +00:00
9463.doc example systemd config: propagate reloads to units (#9463) 2021-02-22 18:43:17 +00:00
9464.misc Add a comment about systemd-python. (#9464) 2021-02-23 13:42:36 +00:00
9465.bugfix Fix deleting pushers when using sharded pushers. (#9465) 2021-02-22 21:14:42 +00:00
9466.bugfix Clean up ShardedWorkerHandlingConfig (#9466) 2021-02-24 13:23:18 +00:00
9470.bugfix Refactor to ensure we call check_consistency (#9470) 2021-02-24 10:13:53 +00:00