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

TextLineDecoder not thread safe?

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-RC1
    • Fix Version/s: 2.0.0
    • Component/s: Filter
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: