1
0
Fork 0
mirror of https://forgejo.ellis.link/continuwuation/continuwuity.git synced 2025-07-28 10:48:30 +00:00
continuwuity/src
Christoph Dittmann 2bc53139fa Don't send empty presence EDUs
I run a homeserver whose logs show a high number of incoming empty
presence EDUs originating from the user agent "Conduwuit/0.4.4". They
arrive at a rate of about 2 queries per second per Conduwuit server.

The empty EDUs all look the same, only with `origin_server_ts`
increasing:

```
{"origin":"example.com","origin_server_ts":1720266475601,"edus":[{"edu_type":"m.presence","content":{"push":[]}}]}
```

These updates are unnecessary because they don't do anything. They
only increase network traffic and CPU usage on both sides.

After this commit, the empty presence updates are no longer inserted
into the outgoing event queue.
2024-07-06 14:13:33 +02:00
..
admin add admin query resolver commands 2024-07-04 22:15:54 +00:00
api impl crate::Service for Service 2024-07-04 21:06:35 +00:00
core add time format string util 2024-07-04 21:06:35 +00:00
database inline analysis and symbol reduction; emits smaller than 64 bytes marked inline 2024-07-04 21:06:35 +00:00
main inline analysis and symbol reduction; emits smaller than 64 bytes marked inline 2024-07-04 21:06:35 +00:00
router mute dev_release_log_level from --all-features for now 2024-06-30 18:02:16 +00:00
service Don't send empty presence EDUs 2024-07-06 14:13:33 +02:00