matrix-org / synapse

Synapse: Matrix homeserver written in Python/Twisted.
https://matrix-org.github.io/synapse
Apache License 2.0
11.82k stars 2.13k forks source link

Kill User Connections #16305

Closed belascoain closed 1 year ago

belascoain commented 1 year ago

Hi

I have one matrix's user that is a bot. Each time that somebody invokes it, bot create a new connection. Now, if I check database for this user I can see more than three hundred connections

How can I kill old connections?

Thanks

DMRobertson commented 1 year ago

Each time that somebody invokes it, bot create a new connection.

The bot should either


We're using Github's issue tracker for bug reports and feature requests. For additional support request, please ask in the Synapse Admins room. If your homeserver is inoperable at the moment, you can sign up for an account on the Matrix.org homeserver in order to reach the support room.

DMRobertson commented 1 year ago

How can I kill old connections?

Try using the admin API to change its password with logout_devices=True.