Closed michaelklishin closed 4 years ago
@dcorbacho done for MQTT, not yet sure if we can apply the same approach to Web MQTT
Web MQTT does not already provide a function that would list its connections.
Yup, Web MQTT is a quite a bit more involved case.
Backported to v3.8.x
.
This makes the refs predictable and easy to compute from a listener record. Then suspending all listeners becomes a lot simpler.
While at it, make protocol applications clean up their listeners when they stop. This way tests and other callers that have to stop the app would not need to know anything about its listeners.
Part of rabbitmq/rabbitmq-server#2321