mirror of
https://mau.dev/maunium/synapse.git
synced 2024-10-03 06:59:01 +02:00
f5c93fc993
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> |
||
---|---|---|
.. | ||
.gitignore | ||
8957.feature | ||
8978.feature | ||
9203.feature | ||
9358.misc | ||
9383.feature | ||
9385.feature | ||
9402.bugfix | ||
9416.bugfix | ||
9432.misc | ||
9438.feature | ||
9440.bugfix | ||
9449.bugfix | ||
9462.misc | ||
9463.doc | ||
9464.misc | ||
9465.bugfix | ||
9466.bugfix | ||
9470.bugfix |