[asterisk-bugs] [JIRA] (ASTERISK-26770) res_stasis_device_state: Duplicate subscriptions when multiple received at same time

Friendly Automation (JIRA) noreply at issues.asterisk.org
Wed Feb 8 09:15:10 CST 2017


    [ https://issues.asterisk.org/jira/browse/ASTERISK-26770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=235102#comment-235102 ] 

Friendly Automation commented on ASTERISK-26770:
------------------------------------------------

Change 4891 merged by zuul:
res_stasis_device_state: Protect the adding/removing of subscriptions.

[https://gerrit.asterisk.org/4891|https://gerrit.asterisk.org/4891]

> res_stasis_device_state: Duplicate subscriptions when multiple received at same time
> ------------------------------------------------------------------------------------
>
>                 Key: ASTERISK-26770
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-26770
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/res_stasis_device_state
>    Affects Versions: 13.13.1, 14.2.1
>            Reporter: Joshua Colp
>            Assignee: Joshua Colp
>            Severity: Minor
>
> There is a race condition in the res_stasis_device_state module when adding subscriptions. If two subscription requests for the same device state are received at the same time there is a slim window between checking and adding the subscription where the second subscription will not see the first. This results in two subscriptions being added instead of just one.



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list