Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-2377

[cpp] tag_counter is not used in a thread safe way in sender.cpp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • proton-c-0.35.0
    • cpp-binding
    • None

    Description

      uint64_t tag_counter = 0 is a global variable, so it might end up giving duplicate ids to different threads.
      We need to ensure that a single sender will not send a message with a duplicate tag. Thread safety is required to guarantee unique tags.

      Link to the discussion regarding this issue :
      https://github.com/apache/qpid-proton/pull/309#discussion_r615219442

      Attachments

        Activity

          People

            DreamPearl Rakhi Kumari
            DreamPearl Rakhi Kumari
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: