You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Chris Fraire (JIRA)" <ji...@apache.org> on 2008/09/08 18:03:52 UTC

[jira] Created: (AMQNET-113) DispatchingThread.EventHandle is an AutoResetEvent potentially shared between threads

DispatchingThread.EventHandle is an AutoResetEvent potentially shared between threads
-------------------------------------------------------------------------------------

                 Key: AMQNET-113
                 URL: https://issues.apache.org/activemq/browse/AMQNET-113
             Project: ActiveMQ .Net
          Issue Type: Bug
          Components: ActiveMQ Client
            Reporter: Chris Fraire
            Assignee: James Strachan
            Priority: Minor


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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AMQNET-113) DispatchingThread.EventHandle is an AutoResetEvent potentially shared between threads

Posted by "Jim Gomes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQNET-113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Gomes updated AMQNET-113:
-----------------------------

        Fix Version/s: 1.1
    Affects Version/s: 1.0

> DispatchingThread.EventHandle is an AutoResetEvent potentially shared between threads
> -------------------------------------------------------------------------------------
>
>                 Key: AMQNET-113
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-113
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>          Components: ActiveMQ Client
>    Affects Versions: 1.0
>            Reporter: Chris Fraire
>            Assignee: James Strachan
>            Priority: Minor
>             Fix For: 1.1
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (AMQNET-113) DispatchingThread.EventHandle is an AutoResetEvent potentially shared between threads

Posted by "Jim Gomes (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQNET-113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jim Gomes resolved AMQNET-113.
------------------------------

    Resolution: Working as Designed
      Assignee: Jim Gomes  (was: James Strachan)

It is my understanding that AutoResetEvents will signal any and all listeners, so one listener can't "steal" the event away from another.  If there is a specific problem that can be identified with this code, please re-open or enter a new JIRA for that.  Otherwise, I can't identify a specific issue here.

> DispatchingThread.EventHandle is an AutoResetEvent potentially shared between threads
> -------------------------------------------------------------------------------------
>
>                 Key: AMQNET-113
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-113
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>          Components: ActiveMQ Client
>    Affects Versions: 1.0
>            Reporter: Chris Fraire
>            Assignee: Jim Gomes
>            Priority: Minor
>             Fix For: 1.1
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AMQNET-113) DispatchingThread.EventHandle is an AutoResetEvent potentially shared between threads

Posted by "Chris Fraire (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQNET-113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris Fraire updated AMQNET-113:
--------------------------------

    Attachment: TestResetEvent.cs

Here are a couple of tests that evaluate the behavior of ManualResetEvents and AutoResetEvents.

> DispatchingThread.EventHandle is an AutoResetEvent potentially shared between threads
> -------------------------------------------------------------------------------------
>
>                 Key: AMQNET-113
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-113
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>          Components: ActiveMQ Client
>    Affects Versions: 1.0
>            Reporter: Chris Fraire
>            Assignee: Jim Gomes
>            Priority: Minor
>             Fix For: 1.1
>
>         Attachments: TestResetEvent.cs
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.