You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Brian Kramer (JIRA)" <ji...@apache.org> on 2012/04/24 05:56:46 UTC

[jira] [Updated] (DIRMINA-890) ProtocolCodecFilter creates multiple decoders per session

     [ https://issues.apache.org/jira/browse/DIRMINA-890?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Kramer updated DIRMINA-890:
---------------------------------

    Attachment: ProtocolCodecFilter.patch

Patch for ProtocolCodecFilter including test.
                
> ProtocolCodecFilter creates multiple decoders per session
> ---------------------------------------------------------
>
>                 Key: DIRMINA-890
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-890
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.0.4
>            Reporter: Brian Kramer
>         Attachments: ProtocolCodecFilter.patch, mina-time.zip
>
>
> I have a stateful decoding state that works with input across multiple calls to messageReceived().  It isn't working because each time the ProtocolCodecFilter has messageReceived() called it creates a brand new decoder from the factory.
> Reading through the class it seems to imply that the encoder and decoder should work the same as the encoder out and decoder out by storing them in the session once created.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira