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

TextLineDecoder not thread safe?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-RC1
    • 2.0.0
    • Filter
    • None

    Description

      in sample code "reverser", there is code like this:
      acceptor.getFilterChain().addLast(
      "codec",
      new ProtocolCodecFilter(new TextLineCodecFactory(Charset
      .forName("UTF-8"))));

      and that means there is only one instance of TextLineCodecFactory, which holds one instance of TextLineEncoder, and TextLineDecoder has a member var named as "IoBuffer delimBuf".
      Is it thread safe to call decode() using this delimBuf?
      I think it's a bug.

      Attachments

        Activity

          People

            Unassigned Unassigned
            jacklondon Jacklondon Chen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: