mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christoph John (Jira)" <j...@apache.org>
Subject [jira] [Commented] (DIRMINA-1120) ProtocolCodecFilter does not support concurrent access
Date Fri, 10 Jan 2020 11:17:00 GMT

    [ https://issues.apache.org/jira/browse/DIRMINA-1120?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17012726#comment-17012726

Christoph John commented on DIRMINA-1120:

Quote from http://mina.apache.org/mina-project/gen-docs/2.1.3/apidocs/org/apache/mina/core/session/IoSession.html

Thread Safety

IoSession is thread-safe. But please note that performing more than one write(Object) calls
at the same time will cause the IoFilter.filterWrite(IoFilter.NextFilter,IoSession,WriteRequest)
to be executed simultaneously, and therefore you have to make sure the IoFilter implementations
you're using are thread-safe, too. 

> ProtocolCodecFilter does not support concurrent access
> ------------------------------------------------------
>                 Key: DIRMINA-1120
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-1120
>             Project: MINA
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.1.1, 2.1.2, 2.1.3
>            Reporter: Cloudor Pu
>            Priority: Major
> In ProtocolCodecFilter#filterWrite method, the same writeRequest might be written more
than once and previous encoded message would be overwritten by next ones and cause message
lost problems.

This message was sent by Atlassian Jira

To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org

View raw message