#1315 Implement c2s:closeall()

Reporter pep.
Owner Zash
Created
Updated
Stars ★ (1)
Tags
  • Status-Fixed
  • Type-Enhancement
  • Difficulty-Easy
  • Priority-Medium
  • Patch
  • Milestone-0.12
  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.

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

    Hi. Trying to tackle this issue currently.

  4. Zash on

    Changes
    • tags Patch Status-Started
  5. Zash on

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

    Changes
    • owner Zash
    • tags Milestone-0.12 Status-Fixed

New comment

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