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

Trustin Lee resolved DIRMINA-390.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 1.0.4
         Assignee: Trustin Lee

This issue happens when ProtocolCodecFilter and SSLFilter are used together.  
ProtocolCodecFilter writes an empty buffer to mark that the whole message has 
been written.  AbstractIoFilterChain's filterWrite implementation was 
programmed to bypass all previous filters if an empty buffer is forwarded 
because empty buffers often causes malfunction of existing filters such as 
CompressionFilter.  However, the workaround instead caused the buffer to bypass 
SSLFilter.

I removed the ugly workaround in AbstractIoFilterChain's filterWrite and made 
sure CompressionFilter is not affected because of the removal of the workaround 
(i.e. added empty buffer check code).

> IoHandler.messageSent is not called when FilterChain contains SSLFilter
> -----------------------------------------------------------------------
>
>                 Key: DIRMINA-390
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-390
>             Project: MINA
>          Issue Type: Bug
>          Components: Filter
>    Affects Versions: 1.0.3, 1.1.0
>            Reporter: Maarten Bosteels
>            Assignee: Trustin Lee
>             Fix For: 1.0.4, 1.1.1
>
>         Attachments: SSLFilter.java.diff, SSLFilterTest.java, 
> SSLFilterTest.java
>
>
> SSLFilter swallows too many messageSent events
> When the FilterChain contains both SSLFilter and ProtocolCodecFilter, the 
> IoHandler does not receive messageSent events.

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

Reply via email to