bug: Pusher build up per-device #2242
Labels
No labels
Abandoned
Blocked
Bug
Changelog
Added
Changelog
Missing
Changelog
None
Cherry-picking
Compliance
Database
Dependencies
Dependencies/Renovate
Difficulty
Easy
Difficulty
Hard
Difficulty
Medium
Documentation
Enhancement
Good first issue
Help wanted
Inherited
Matrix/Administration
Matrix/Appservices
Matrix/Auth
Matrix/Client
Matrix/Core
Matrix/E2EE
Matrix/Federation
Matrix/Hydra
Matrix/MSC
Matrix/Media
Matrix/T&S
Merge
Merge/Manual
Merge/Squash
Meta
Meta/CI
Meta/Packaging
Priority
Blocking
Priority
High
Priority
Low
Security
Status
Confirmed
Status
Duplicate
Status
Invalid
Status
Needs Investigation
Support
bob the builder
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
continuwuation/continuwuity#2242
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What is the bug?
Continuwuity seems to delete pushers when a device logs out (#1614). However, same-device pushers can accumulate over time, most likely due to renewals (i.e. the old ntfy push target expired and the client asks for a new one). Leaving this over time, Continuwuity accumulates a bunch of dead endpoints it pushes to and amplify its sender traffic.
The spec, however, does say that:
Therefore, I'd like Continuwuity to delete all former pushers of a current device when a new pusher is registered.
Steps to reproduce
/_matrix/client/v3/pushersendpoint, sees many more pushers than there are active clientsCould not send request to pusherServer name and version
26.8.1 (
71e101a)Additional context
The problem is similar to my earlier report, and can be worsened with clientside bugs e.g. low expiry time. Also related to my comments in #805
I'm not convinced this is something the server should do, nor do I see this behaviour being recommended in the spec anywhere. It's explicitly clients' job to clean up pushers, the server only deletes them after devices are removed since the device then can't exactly manage the pushers.
I'd be open to maybe dropping the oldest pusher when reaching a certain limit, but even that sounds sussy
I would be somewhat okay with dropping older pushers (though I wonder how Synapse does it). Will need to find out why clients couldn't clean up after themselves, though.
I'm going to close this as invalid because this isn't specced behaviour and is more or less indicative of a client bug.