]> git.ipfire.org Git - thirdparty/asterisk.git/commit
stasis_cache: Prune stasis_subscription_change messages
authorGeorge Joseph <gjoseph@digium.com>
Thu, 30 Aug 2018 18:08:05 +0000 (12:08 -0600)
committerGeorge Joseph <gjoseph@digium.com>
Wed, 5 Sep 2018 18:52:08 +0000 (13:52 -0500)
commit9fb166cf3b0191a1b16f883f1f8070bb40e95fa7
tree7a78cbc79f9272e6f26261b8c2fc4b644eb99f62
parent85a7c33acf1187d572ef1817960f86ba3aa59037
stasis_cache: Prune stasis_subscription_change messages

The stasis cache provides a way to reconstruct the current state
of topic subscribers.  Unfortunately, since every subscribe and
unsubscribe is cached, the cache continues to grow unabated while
asterisk is running.  This patch removes subscribe messages from
the cache when the corresponding unsubscribe is received.

This patch also registers the cache containers with ao2 so that if
AO2_DEBUG is turned on, you can list the container and get its
stats from the CLI.

ASTERISK-27121

Change-Id: I3d18905e477f3721815da91f30da8d3fbb2d4f56
main/stasis_cache.c