[asterisk-bugs] [JIRA] (ASTERISK-28154) stasis: Add support for shutting down topic
Joshua C. Colp (JIRA)
noreply at issues.asterisk.org
Tue Nov 6 05:17:47 CST 2018
Joshua C. Colp created ASTERISK-28154:
-----------------------------------------
Summary: stasis: Add support for shutting down topic
Key: ASTERISK-28154
URL: https://issues.asterisk.org/jira/browse/ASTERISK-28154
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: Core/Stasis
Affects Versions: 16.0.0
Reporter: Joshua C. Colp
Severity: Minor
This issue documents a mechanism for adding support for explicitly shutting down a topic and removing associated resources:
1. A stasis message type indicating that a topic is being shutdown should be added. This will be sent to each subscriber.
2. A stasis subscription should allow the topic to be set to NULL and stasis_unsubscribe called multiple times on it.
3. A stasis_topic_shutdown function should be added which does the following:
Lock the topic
Iterates subscriptions on the topic
Removes subscription from topic
If the subscription is not actually subscribed to the topic (forwarding case) skip it and move to next subscription
Publish a stasis_topic_shutdown message to the subscription
Publish an unsubscribe to the topic and subscription
Unsubscribe the subscription and release resources in it (the subscriber callback may have done this already, thus #2)
Unlock the topic
Release reference to the topic
4. As each subscriber receives the stasis_topic_shutdown message type it should release any reference to the subscription
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list