diff options
author | Kinsey Moore <kmoore@digium.com> | 2013-03-20 16:01:30 +0000 |
---|---|---|
committer | Kinsey Moore <kmoore@digium.com> | 2013-03-20 16:01:30 +0000 |
commit | 7ed0b80d94100626ccdd4ddb19207486bf59710a (patch) | |
tree | 14892acaae0ac2b3e42477759e8ed6c8dbfdc216 /LICENSE | |
parent | 07d01e1c4185bf044f3ebb8bf49caf386c331351 (diff) |
Resolve a race condition in Stasis
Because of the way that topics were handled when publishing, it was
possible to dispatch a message to a subscription after that
subscription had been unsubscribed such that the dispatched message
arrived at the callback after the callback had received its final
message. In callbacks that cleaned up user data, this would often cause
a segfault. This has been resolved by locking the topic during the
entirety of dispatch. To prevent long publishing and topic locking
times, forwarding subscriptions have been made to be standard
subscriptions instead of mailboxless subscriptions which were
dispatched at publishing time.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@383422 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions