#1315 Implement c2s:closeall()

Reporter pep.
Owner Zash
Stars ★ (1)
  • Milestone-0.12
  • Patch
  • Difficulty-Easy
  • Type-Enhancement
  • Status-Fixed
  • Priority-Medium
  1. pep. on

    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.

  2. Zash on

    Good idea, should be easy.

    • tags Status-Accepted Difficulty-Easy
  3. João Duarte on

    Hi. Trying to tackle this issue currently.

  4. Zash on

    • tags Patch Status-Started
  5. Zash on

    Merged as https://hg.prosody.im/trunk/rev/c30933aa0242 Thanks for the patch!

    • owner Zash
    • tags Milestone-0.12 Status-Fixed

New comment

Not published. Used for spam prevention and optional update notifications.