continuwuity/src/service/sending
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
..
appservice.rs Fix futures not Send 2024-06-09 20:06:50 +00:00
data.rs inline analysis and symbol reduction; emits smaller than 64 bytes marked inline 2024-07-04 21:06:35 +00:00
mod.rs refactor resolver tuples into structs 2024-07-04 21:06:35 +00:00
resolve.rs don't cache server name lookups indefinitely (#436) 2024-07-04 21:06:35 +00:00
send.rs don't cache server name lookups indefinitely (#436) 2024-07-04 21:06:35 +00:00
sender.rs Don't send empty presence EDUs 2024-07-06 14:13:33 +02:00