Sliding sync pollers should use set_presence=offline
when requesting oldschool /sync
#217
Labels
set_presence=offline
when requesting oldschool /sync
#217
/sync
currently bumps the user's presence timeout. Since SS pollers are active even when the device is offline, this is undesired as the users will be marked as online when they are not. Further, this causes a bit more load on Synapse and also as a consequence causes other sync loop within Synapse to wake up to emit this unwanted presence data to other users who may be syncing.I suspect this may be contributing to the high CPU usage reported at matrix-org/synapse#15980.
(or, with extra involved effort: find some way to pass the right state through from the client)
Related code:
sliding-sync/sync2/client.go
Line 64 in aadc358
sliding-sync/sync2/client.go
Line 88 in aadc358
The text was updated successfully, but these errors were encountered: