Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-893

'fake deadlock' causes IoFuture.await() to malfunction

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Critical
    • Resolution: Unresolved
    • 2.0.2
    • None
    • Core
    • XP, JDK 1.6

    Description

      I am using a NioSocketConnector inside a NioSocketAcceptor (like a message broker / proxy app), and I need to use the connector in synchronous mode therefore I have to call IoFuture.await() or the method alike.
      The problem is, as I look into the source code, when it comes to ConnectionFuture.await(), if the connection is not ready, DefaultIoFuture.checkDeadLock() will be called, iterating through the stack trace of current thread, checking to see if AbstractPollingIoProcessor is involved in the trace, and if so, throw a dead lock exception. The point is, IMHO, this AbstractPollingIoProcessor is created by the NioSocketAcceptor, not by the NioSocketConnector, and thus shouldn't be interpreted as a dead lock threat.
      How can I work around this issue?

      Attachments

        Activity

          People

            johnnyv Jonathan Valliere
            carusyte Carusyte
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: