Mercurial > prosody-hg
comparison plugins/mod_admin_socket.lua @ 14144:e38916e22f59 13.0
mod_limits: Only count connections with associated sessions
I suspect some (all??) network backends and some edge cases cause ondisconnect
to be called more than once. mod_c2s and mod_s2s already handle this, skipping
cleanup if there is no session associated. Sessions are assigned very early on
in onconnect, so it seems like a reliable way of counting.
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 17 Apr 2026 19:42:44 +0100 |
| parents | 34da8cc10b82 |
| children |
comparison
equal
deleted
inserted
replaced
| 14143:723c6f5f01b7 | 14144:e38916e22f59 |
|---|
