Asterisk
  1. Asterisk
  2. ASTERISK-26770

res_stasis_device_state: Duplicate subscriptions when multiple received at same time

    Details

    • Regression:
      No

      Description

      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.

        Issue Links

          Activity

          Hide
          Friendly Automation added a comment -

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

          https://gerrit.asterisk.org/4890

          Show
          Friendly Automation added a comment - Change 4890 merged by zuul: res_stasis_device_state: Protect the adding/removing of subscriptions. https://gerrit.asterisk.org/4890
          Hide
          Friendly Automation added a comment -

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

          https://gerrit.asterisk.org/4891

          Show
          Friendly Automation added a comment - Change 4891 merged by zuul: res_stasis_device_state: Protect the adding/removing of subscriptions. https://gerrit.asterisk.org/4891
          Hide
          Friendly Automation added a comment -

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

          https://gerrit.asterisk.org/4892

          Show
          Friendly Automation added a comment - Change 4892 merged by zuul: res_stasis_device_state: Protect the adding/removing of subscriptions. https://gerrit.asterisk.org/4892

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development