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

bugs in PooledTaskRunner.cs

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.7.2
    • None
    • ActiveMQ
    • None

    Description

      Although the 1.7.2 release of the AMQ .net client uses the DedicatedTaskRunner runner by default. We compile from source and use PooledTaskRunner.cs for performance reasons. However this code has some bugs. Namely the Shutdown() method will deadlock on a call to Thread.Sleep with infinite timespan. If you look at the Java source for PooledTaskRunner, it looks like the C# port is missing the thread synchronization logic that the Java implementation has. I've attached a version which corrects this and makes it in-line with the Java implementation and corrects the logic in Shutdown which needs to be a synchronized wait (e.g., Monitor.Wait())

      Attachments

        1. PooledTaskRunner.cs
          5 kB
          JEFF ANDERSON

        Activity

          People

            Unassigned Unassigned
            kilroytrout JEFF ANDERSON
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: