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

ProtocalSession begins reading(decoding) before the session has been opened

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.7.1
    • 0.7.2
    • None
    • None
    • windows xp using TCP/IP

    Description

      With a local connection, I have seen it over the network but not as often, MINA regularly will call the Decoder.decode(..) method before it calls ProtocolHandler.sessionOpened

      Inside the decode, I use the protocolSession attachment, which is set in the ProtocolHandler.sessionOpened

      so on these occassions, i am unable to read properly because my attachment object is not available.

      I have an ugly hack for my needs that requires synchronizing on the protocolsession in both methods, but would think that MINA should properly manage the lifecycle to gaurantee that sessionOpened is always called before any read/writes on the protocolsession.

      Attachments

        Activity

          People

            trustin Trustin Lee
            dfellars1 Daniel Fellars
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: