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

Emmanuel Lecharny commented on DIRMINA-1048:
--------------------------------------------

Actually, MINA 2.0.14 fixes some similar issue 
(https://issues.apache.org/jira/browse/DIRMINA-1037). 2.0.15 is just fixing a 
SSL issue (and a NPE).

An aborted connection might not always be detected by the server (that is 
inherent to the way TCP works), but f the remote peer abort it the right way, 
then now, the server should trap the exception and correctly close the session.

And I agree, it's hard to reproduce. In any case, that will not put your 
application at risk, beside the stack traces that may polute your logs.

> IoSession doesn't go to corrected state
> ---------------------------------------
>
>                 Key: DIRMINA-1048
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-1048
>             Project: MINA
>          Issue Type: Bug
>    Affects Versions: 2.0.13
>         Environment: windows 7
>            Reporter: eli_user
>            Priority: Critical
>
> In my implementation of IoFilter i don't make override of
> @Override
> public void exceptionCaught(NextFilter nextFilter, IoSession session, 
> Throwable cause) throws Exception {
> }
> After following stacktrace, IoSession doesn't notified on error occured
> java.io.IOException: An established connection was aborted by the software in 
> your host machine
>         at sun.nio.ch.SocketDispatcher.read0(Native Method)
>         at sun.nio.ch.SocketDispatcher.read(Unknown Source)
>         at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source)
>         at sun.nio.ch.IOUtil.read(Unknown Source)
>         at sun.nio.ch.SocketChannelImpl.read(Unknown Source)
>         at 
> org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:312)
>         at 
> org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:45)
>         at 
> org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:677)
>         at 
> org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:651)
>         at 
> org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:640)
>         at 
> org.apache.mina.core.polling.AbstractPollingIoProcessor.access$600(AbstractPollingIoProcessor.java:68)
>         at 
> org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:1097)
>         at 
> org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown 
> Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to