You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Trustin Lee (JIRA)" <ji...@apache.org> on 2007/07/18 05:22:04 UTC

[jira] Created: (DIRMINA-402) Simultaneous writes causes 'bad record MAC' error when SSLFilter is used.

Simultaneous writes causes 'bad record MAC' error when SSLFilter is used.
-------------------------------------------------------------------------

                 Key: DIRMINA-402
                 URL: https://issues.apache.org/jira/browse/DIRMINA-402
             Project: MINA
          Issue Type: Bug
          Components: Filter
    Affects Versions: 1.1.0, 1.0.3
            Reporter: Trustin Lee
            Assignee: Trustin Lee
            Priority: Critical
             Fix For: 1.0.4, 1.1.1


'bad record MAC' error means that the order of writes is mixed up and the client (remote peer) cannot validate the integrity of the received messages.  This error is caused when a user writes messages from multiple threads simultaneously.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (DIRMINA-402) Simultaneous writes causes 'bad record MAC' error when SSLFilter is used.

Posted by "Trustin Lee (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRMINA-402?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Trustin Lee closed DIRMINA-402.
-------------------------------

    Resolution: Fixed

I resolved the problem by splitting the event queue into two queues; one for messageReceived events and the other for filterWrite events.   Explicit synchronization has been applied to filterWrite events to fix this issue.

> Simultaneous writes causes 'bad record MAC' error when SSLFilter is used.
> -------------------------------------------------------------------------
>
>                 Key: DIRMINA-402
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-402
>             Project: MINA
>          Issue Type: Bug
>          Components: Filter
>    Affects Versions: 1.0.3, 1.1.0
>            Reporter: Trustin Lee
>            Assignee: Trustin Lee
>            Priority: Critical
>             Fix For: 1.0.4, 1.1.1
>
>
> 'bad record MAC' error means that the order of writes is mixed up and the client (remote peer) cannot validate the integrity of the received messages.  This error is caused when a user writes messages from multiple threads simultaneously.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.