Uploaded image for project: 'ActiveMQ .Net'
  1. ActiveMQ .Net
  2. AMQNET-113

DispatchingThread.EventHandle is an AutoResetEvent potentially shared between threads

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 1.0.0
    • 1.1.0
    • ActiveMQ
    • None

    Description

      Not sure it is an actual problem, but it seems suspect that a Session's DispatchingThread.EventHandle (AutoResetEvent) instance is associated with a MessageConsumer's Dispatcher when a Listener is attached. Since the EventHandle is an AutoResetEvent, it is possible that a DispatchingThread will miss a signal got instead by Dispatcher.Dequeue(Timespan). Is the correct behavior that they both be signaled?

      Thanks,
      Chris

      Attachments

        1. TestResetEvent.cs
          3 kB
          Chris Fraire

        Activity

          People

            jgomes Jim Gomes
            cfraire Chris Fraire
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 3h
                3h