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

Deadlock with acknowledgement

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.1.0
    • ActiveMQ
    • None
    • Windows Quadcore machine, running Visual Studio 2008, and .NET 2.0

    Description

      When I send and receive very large number of text based messages the code doing the receiving will lock up. This behavior occurs when you use async or the IMessageConsumer.Read method.

      The problem is that when the Receive method is called it calls the CheckClosed. In the method CheckClosed there is a lock(this) statement, and it is waiting for the lock to be released. The problem is that the method Dispatch that also uses the same lock is deadlocked on something. In specific the following line is the deadlock:

      ackSession.Connection.OneWay(ack);

      If I switch the session settings from AutoAcknowledge to ClientAcknowledge then I can retrieve all of the messages without any deadlocks occurring.

      Attachments

        Activity

          People

            jgomes Jim Gomes
            christianhgross Christian Gross
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: