forked-synapse/synapse/types
Erik Johnston 1ce59d7ba0 Fix sync waiting for an invalid token from the "future" (#17386)
Fixes https://github.com/element-hq/synapse/issues/17274, hopefully.

Basically, old versions of Synapse could advance streams without
persisting anything in the DB (fixed in #17229). On restart those
updates would get lost, and so the position of the stream would revert
to an older position. If this happened across an upgrade to a later
Synapse version which included #17215, then sync could get blocked
indefinitely (until the stream advanced to the position in the token).

We fix this by bounding the stream positions we'll wait for to the
maximum position of the underlying stream ID generator.
2024-07-02 12:40:03 +01:00
..
handlers Reorganize Pydantic models and types used in handlers (#17279) 2024-06-10 15:03:50 -05:00
rest Add stream_ordering sort to Sliding Sync /sync (#17293) 2024-06-17 11:27:14 -05:00
__init__.py Fix sync waiting for an invalid token from the "future" (#17386) 2024-07-02 12:40:03 +01:00
state.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00