Description of feature:
Close all active c2s connections, instead of doing it one by one with `c2s:close(jid)`.
In the past I have used the following to do this:
host:deactivate("example.com", { condition = "reset" }); config:reload(); host:activate("example.com")
It actually does a bit more things though.
Motivation: (Why?)
Can be useful when we need clients to reconnect.
Description of feature: Close all active c2s connections, instead of doing it one by one with `c2s:close(jid)`. In the past I have used the following to do this: host:deactivate("example.com", { condition = "reset" }); config:reload(); host:activate("example.com") It actually does a bit more things though. Motivation: (Why?) Can be useful when we need clients to reconnect.
Good idea, should be easy.
ChangesHi. Trying to tackle this issue currently.
Merged as https://hg.prosody.im/trunk/rev/c30933aa0242 Thanks for the patch!
Changes