[ 
https://issues.apache.org/jira/browse/DIRMINA-249?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12531278
 ] 

Trustin Lee commented on DIRMINA-249:
-------------------------------------

I've just added WriteRequestFilter (in org.apache.mina.filter.util).  It's an 
abstract filter than allows users to implement an IoFilter that filters a 
IoSession.write() call.  Providing the default implementation of 
exceptionCaught handler will lessen the burden of the implementor 
significantly.  However, it won't help the implementation of more complex 
filters such as SslFilter ans ProtocolCodecFilter.

> exceptionCaught() should provide more information
> -------------------------------------------------
>
>                 Key: DIRMINA-249
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-249
>             Project: MINA
>          Issue Type: Improvement
>         Environment: All
>            Reporter: Vinod Panicker
>             Fix For: 2.0.0-M1
>
>
> Currently if the application calls a write() on MINA, it will get notified of 
> any exceptions via the exceptionCaught() method.  The problem is that the 
> application does not have any information as to what data could not be 
> written on the session.  To figure that out, it either has to wait on the 
> WriteFuture or implement some state mechanism within the IoSession.
> Trustin recommended that a WriteException could be created, which could 
> provide the necessary information. It should have the ByteBuffer for which 
> the write() failed.

-- 
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