Expire sliding sync connections (#19211)

We add some logic to expire sliding sync connections if they get old or
if there is too much pending data to return.

The values of the constants are picked fairly arbitrarily, these are
currently:
1. More than 100 rooms with pending events if the connection hasn't been
used in over an hour
2. The connection hasn't been used for over a week

Reviewable commit-by-commit

---------

Co-authored-by: Eric Eastwood <erice@element.io>
This commit is contained in:
Erik Johnston
2025-11-25 10:20:47 +00:00
committed by GitHub
parent 8b79583643
commit db975ea10d
10 changed files with 304 additions and 12 deletions

1
changelog.d/19211.misc Normal file
View File

@@ -0,0 +1 @@
Expire sliding sync connections that are too old or have too much pending data.