This makes the refs predictable and easy to compute
from a listener record. Then suspending all listeners
becomes a lot simpler.
We also introduce a way to list and shut down all Web STOMP client
connections. Kudos to @essen for explaining what'd be the best way to do that
with Ranch.
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.
This makes the refs predictable and easy to compute from a listener record. Then suspending all listeners becomes a lot simpler.
We also introduce a way to list and shut down all Web STOMP client connections. Kudos to @essen for explaining what'd be the best way to do that with Ranch.
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