Skip to content
Snippets Groups Projects
  1. Jul 08, 2024
  2. Jul 06, 2024
    • Christoph Dittmann's avatar
      Don't send empty presence EDUs · 2bc53139
      Christoph Dittmann authored
      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.
      2bc53139
  3. Jul 04, 2024
  4. Jul 03, 2024
  5. Jun 30, 2024
  6. Jun 22, 2024
  7. Jun 09, 2024
  8. Jun 06, 2024
  9. Jun 05, 2024
    • 🥺's avatar
      delete unnecessary `real_users_cache`, fix overwriting push_target iter, add... · c738c119
      🥺 authored
      delete unnecessary `real_users_cache`, fix overwriting push_target iter, add proper function for getting local active users in room
      
      this `real_users_cache` cache seems weird, and i have no idea what
      prompted its creation upstream. perhaps they did this because
      sqlite was very slow and their rocksdb setup is very poor, so
      a "solution" was to stick member counts in memory.
      slow iterators, scanning, etc do not apply to conduwuit where
      our rocksdb is extremely tuned, and i seriously doubt something
      like this would have any real world net-positive performance impact.
      
      also for some reason, there is suspicious logic where we
      overwrite the entire push target collection.
      
      both of these things could be a potential cause for receiving
      notifications in rooms we've left.
      
      Signed-off-by: default avatarstrawberry <strawberry@puppygock.gay>
      c738c119
  10. Jun 03, 2024
  11. Jun 02, 2024
  12. May 27, 2024
  13. May 22, 2024
  14. May 03, 2024
  15. Apr 26, 2024
  16. Apr 17, 2024
  17. Apr 15, 2024
Loading