rabbitmq / rabbitmq-mqtt

RabbitMQ MQTT plugin
https://www.rabbitmq.com/mqtt.html
Other
174 stars 67 forks source link

Maintenance mode event support #234

Closed michaelklishin closed 4 years ago

michaelklishin commented 4 years ago

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

michaelklishin commented 4 years ago

@dcorbacho done for MQTT, not yet sure if we can apply the same approach to Web MQTT

michaelklishin commented 4 years ago

Web MQTT does not already provide a function that would list its connections.

michaelklishin commented 4 years ago

Yup, Web MQTT is a quite a bit more involved case.

michaelklishin commented 4 years ago

Backported to v3.8.x.