]> 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:50:42 +0000 (12:50 -0600)
commit87550706c8839e29ba13e57c532cdd94fd5039a1
tree04286eedfab3aa3c586afbb94b9cc226a2c908a6
parent7b898dd8e1aab964ad96645da31a8c3f7ef1e8f9
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